Looking for more information on how to do PHP the right way? Check out PHP: The Right Way

PHP Magazine:
PEAR is Getting Event Support
Jan 17, 2005 @ 12:57:00

PHP Magazine has a new posting today about a few words from Stephan Schmidt concerning event support in PEAR.

In a quick note from Stephan Schmidt is a pointer to Bertrand Mansion's new proposal for Event_Dispatcher, a package that provides easy-to-use event handling for your projects.The package's architecture is quite simple: There is an Event_Dispatcher, which is able to hold observers (native PHP callbacks) for different notification types. These observers will be notified whenever an event (aka notification) occurs. This notification is a simple object that stores information about the event itself. In real life you can use it to add functionality to your sites, without having to change the code of your application. If this sounds cool, and you haven't voted for this package yet, go ahead and stamp your approval for a (event) handle on your projects.

This kind of add-on does sound like it could be immensely helpful, especially for debugging and quick little "catches" of your site.

tagged:

Link:


Trending Topics: