You are here: Re: web services classes and private method? « All PHP « IT news, forums, messages
Re: web services classes and private method?

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]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация