Re: Re: [PEPr] Comment on Web Services::Services_urlTea
| From: | Chuck Burgess | Date: | Tue, 09 Oct 2007 13:01:04 +0000 |
| Subject: | Re: Re: [PEPr] Comment on Web Services::Services_urlTea | ||
| References: | 1 2 3 4 | Groups: | php.pear.dev |
| Request: | Send a blank email to pear-dev+get-48247@lists.php.net to get a copy of this message | ||
On 10/9/07, Ken Guest <ken@linux.ie> wrote:
>
> If they have a similar fingerprint, as Philippe is suggesting, it would be
> simple enough to devise a 'meta' package that utilises them as drivers as
> per your own comments.
>
Exactly what I was getting it by have a "Services" level interface, and I do
mean "interface" rather than "class". I was trying to describe it that way,
guess I blew it :P
Services - interface to certain set of methods
- - all methods can remain static...
- - final optional arg to each method could be a marker to
- denote "use service X", but defaults to "use any
available service"
- - create() - defaults to using any available
service, or optional arg can specifiy service to use
- - lookup() - can determine based on $url which
service to lookup against
Services_TinyURL - implement Service interface's methods
Services_urlTea - implement Service interface's methods
Services_NextOne - ...
Services_AndAnotherOne - ...
--
CRB
Let me introduce you to my very own DMCA-protected encryption key:
BC 1B 64 4A 8D DE 49 E8 C3 7D CC EE 1A AD EE F5
(compliments of Freedom-to-Tinker http://www.freedom-to-tinker.com/?p=1155)