JObserverUpdaterInterface
Observer updater pattern implementation for Joomla
since |
3.1.2 |
---|---|
package |
Joomla.Platform |
Methods
__construct
Constructor
__construct(\JObservableInterface $observable)
attachObserver
Adds an observer to the JObservableInterface instance updated by this This method can be called from JObservableInterface::attachObserver
attachObserver(\JObserverInterface $observer) : void
doCallObservers
Enable/Disable calling of observers (this is useful when calling parent:: function
doCallObservers(boolean $enabled) : boolean
since |
3.1.2 |
---|
Arguments
- $enabled
boolean
Enable (true) or Disable (false) the observer events
Response
boolean
Returns old state
update
Call all observers for $event with $params
update(string $event, array $params) : void
since |
3.1.2 |
---|
Arguments
- $event
string
Event name (function name in observer)- $params
array
Params of event (params in observer function)