Re: [PEPr] Call for votes on Web Services::Services_Webservice

From: Date: Sun, 10 Jul 2005 09:47:53 +0000
Subject: Re: [PEPr] Call for votes on Web Services::Services_Webservice
References: 1 2 3 4 5 6 7 8 9  Groups: php.pear.dev 
Request: Send a blank email to pear-dev+get-38522@lists.php.net to get a copy of this message
> Philippe Jausions wrote: > >>>>>> 3. Extending the Webservices_Webservice class is not good and too >>>>>> restrictive. You should should use a decorator pattern that would >>>>>> accept >>>>>> a class name or an instance of it on which you run the reflection >>>>>> functions, and use the __call() PHP5 feature to pass the queries. >>>>>> >>>>> >>>>> Extending Webservice is too restrictive? Decorator pattern? Passing >>>>> instance? I better not start a discussion about that! > >> Right, and still you didn't answer me on how to expose class b above as >> a webservice using your solution... and of course extending "class a" to >> be sub-class of Services_WebService is not one. > > Well maybe interceptors can help get around the requirement to extend > from the base class? > hi lukas, the webservice class is an endpoint in your class hierarchie. you won`t need to extend from the service base class. But if you really want to extend it than you have to call as a webservice and continue there. Manfred

« previous php.pear.dev (#38522) next »