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

From: Date: Sun, 10 Jul 2005 08:31:41 +0000
Subject: Re: [PEPr] Call for votes on Web Services::Services_Webservice
References: 1 2 3 4 5 6 7 8  Groups: php.pear.dev 
Request: Send a blank email to pear-dev+get-38515@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? regards, Lukas

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