Re: patterns in SPL and PEAR
| From: | Bertrand Mansion | Date: | Tue, 19 Apr 2005 11:40:00 +0000 |
| Subject: | Re: patterns in SPL and PEAR | ||
| References: | 1 | Groups: | php.pear.dev |
| Request: | Send a blank email to pear-dev+get-37279@lists.php.net to get a copy of this message | ||
Lukas Smith wrote:
>Hi,
>
>since both ext/SPL and PEAR are increasingly making classes available
>with the sole purpose of exposing OO design patterns I would like to
>make sure that both sides know this and that we try and remain
>compatible as much as possible. Especially in things like method naming.
>
>ext/SPL Observer:
>http://www.php.net/~helly/php/ext/spl/interfaceObserver.html
>ext/SPL Subject:
>http://www.php.net/~helly/php/ext/spl/interfaceSubject.html
Those are interfaces, not classes :)
>PEAR::Event_Dispatcher:
>http://pear.php.net/package/Event_Dispatcher
>PEAR::PEAR_Delegator:
>http://pear.php.net/package/PEAR_Delegator
As far as Event_Dispatcher is concerned, it would be nice to see a PHP internal
implementation of the concept some day :) Although I have no idea of the
technical implications.
It is also nice to see that Marcus is working on pretty and useful interfaces. I
only wish his work could be better advertised (on Planet PHP for example).
Marcus, don't you have a blog ! :)
Bertrand Mansion
Mamasam