Joomla CMS
3.10.11 (avec JPlatform 13.1 inclus)
Documentation des API du CMS Joomla en version 3.10.11 et du framework Joomla Platform intégré
|
Fonctions membres publiques | |
__construct (JObservableInterface $observable) | |
attachObserver (JObserverInterface $observer) | |
update ($event, $params) | |
doCallObservers ($enabled) | |
Observer updater pattern implementation for Joomla
__construct | ( | JObservableInterface | $observable | ) |
Constructor
JObservableInterface | $observable | The observable subject object |
Implémenté dans JObserverUpdater.
attachObserver | ( | JObserverInterface | $observer | ) |
Adds an observer to the JObservableInterface instance updated by this This method can be called from JObservableInterface::attachObserver
JObserverInterface | $observer | The observer object |
Implémenté dans JObserverUpdater.
doCallObservers | ( | $enabled | ) |
Enable/Disable calling of observers (this is useful when calling parent:: function
boolean | $enabled | Enable (true) or Disable (false) the observer events |
Implémenté dans JObserverUpdater.
update | ( | $event, | |
$params | |||
) |
Call all observers for $event with $params
string | $event | Event name (function name in observer) |
array | $params | Params of event (params in observer function) |
Implémenté dans JObserverUpdater.