JObserverUpdaterInterface

Observer updater pattern implementation for Joomla

since

3.1.2

package

Joomla.Platform

Methods

__construct

Constructor

__construct(\JObservableInterface $observable) 
since

3.1.2

Arguments

$observable

\JObservableInterfaceThe observable subject object

attachObserver

Adds an observer to the JObservableInterface instance updated by this This method can be called fron JObservableInterface::attachObserver

attachObserver(\JObserverInterface $observer) : void
since

3.1.2

Arguments

$observer

\JObserverInterfaceThe observer object

doCallObservers

Enable/Disable calling of observers (this is useful when calling parent:: function

doCallObservers(boolean $enabled) : boolean
since

3.1.2

Arguments

$enabled

booleanEnable (true) or Disable (false) the observer events

Response

booleanReturns old state

update

Call all observers for $event with $params

update(string $event, array $params) : void
since

3.1.2

Arguments

$event

stringEvent name (function name in observer)

$params

arrayParams of event (params in observer function)