PEAR :: NotificationCenter

PEAR :: PEPr :: Details :: NotificationCenter

A notification center acts as a notification dispatch table. It is used to notify other objects of interesting things, if they meet certain criteria. This information is encapsulated in Notification objects.

Client objects register themselves with the notification center as observers of specific notifications posted by other objects. When an event occurs, an object posts an appropriate notification to the notification center. The notification center dispatches a message to each registered observer, passing the notification as the sole argument.

That sounds really cool and useful. Let’s hope it goes through the PEAR voting process…