\JObserverMapper
Observer mapping pattern implementation for Joomla
Synopsis
class JObserverMapper
{
- // members
- protected $observations;
- // methods
- public static void addObserverClassToClass()
- public static void attachAllObservers()
Members
protected
- $observations
—
array
Array: array( JObservableInterface_classname => array( JObserverInterface_classname => array( paramname => param, .... ) ) )
Methods
public
- addObserverClassToClass() — Adds a mapping to observe $observerClass subjects with $observableClass observer/listener, attaching it on creation with $params on $observableClass instance creations
- attachAllObservers() — Attaches all applicable observers to an $observableObject