JObserverMapper
class JObserverMapper
Observer mapping pattern implementation for Joomla
Methods
static
void
addObserverClassToClass(
string $observerClass,
string $observableClass,
array|boolean $params = array())
Adds a mapping to observe $observerClass subjects with $observableClass observer/listener, attaching it on creation with $params on $observableClass instance creations
static
void
attachAllObservers(
JObservableInterface $observableObject)
Attaches all applicable observers to an $observableObject
Details
static
void
addObserverClassToClass(
string $observerClass,
string $observableClass,
array|boolean $params = array())
Adds a mapping to observe $observerClass subjects with $observableClass observer/listener, attaching it on creation with $params on $observableClass instance creations
static
void
attachAllObservers(
JObservableInterface $observableObject)
Attaches all applicable observers to an $observableObject