Public Member Functions | |
attach ($event, &$obj) | |
attach_all (&$obj) | |
dettach (&$obj) | |
Public Attributes | |
$_observers = Array() | |
Protected Member Functions | |
notify_all ($event, $msg) |
Definition at line 15 of file Observable.php.
|
This method can be used to attach an object to the class listening for some specific event. The object will be notified when the specified event is triggered by the derived class. Definition at line 27 of file Observable.php. |
|
Attaches an object to the class listening for any event. The object will be notified when any event occurs in the derived class. Definition at line 40 of file Observable.php. |
|
Detaches an observer from the class. Definition at line 52 of file Observable.php. |
|
Method used to notify objects of an event. This is called in the methods of the derived class that want to notify some event. Definition at line 64 of file Observable.php. |