JObservable [Review]

API Package Subpackage Class Reference Last reviewed Doc status
API Home Package Joomla.Framework Subpackage Base Class JObservable Reference JObservable Never Work in Progress

This is an abstract observable class to implement the Observer design pattern. It is extended by JEventDispatcher which is instantiated by JApplication. JObservable is a subclass of JObject.

The Observer design pattern provides the possibility of having observable objects raising events triggered through the Event Dispatcher. |Observers can be attached to an instance of an Observable so that they can be notified when specific events occur during the life-cycle of this particular object.

Methods

Method Description
__construct Class constructor.
attach Attach an Observer object.
detach Detach an Observer object.
getState Get the state of the Observable object.
notify Update each attached Observer and return an array of their return values.