|
Posted by Timothee Groleau on 05/19/06 13:12
Timothee Groleau wrote:
> Hi all,
>
> I'm trying to create a webservice by using a class but I have some
> problems with sharing redundant code. I thought I could create private
> methods in my class to share the common code without exposing the function
> in the webservice but that is not working :(.
>
> Is there a way to achieve this? Here is my sample webservice class. The
> method, I'd like to share is "connect".
Never mind, David Kingma, the author of WSHelper pointed out my very dumb
mistake: in PHP classes, I must refer to the current instance explicitely
when calling methods: this->connect() instead of just connect().
Sorry for the noise.
Tim.
Navigation:
[Reply to this message]
|