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) | |
detachObserver ($observer) | |
getObserverOfClass ($observerClass) | |
update ($event, $params) | |
doCallObservers ($enabled) | |
Attributs protégés | |
$aliases = array() | |
$observers = array() | |
$doCallObservers = true | |
Observer updater pattern implementation for Joomla
__construct | ( | JObservableInterface | $observable | ) |
Constructor
JObservableInterface | $observable | The observable subject object |
Implémente JObserverUpdaterInterface.
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émente JObserverUpdaterInterface.
Références $class, et JLoader\getDeprecatedAliases().
detachObserver | ( | $observer | ) |
Removes an observer from the JObservableInterface instance updated by this This method can be called from JObservableInterface::attachObserver
String | $observer | The observer class name |
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émente JObserverUpdaterInterface.
Références $enabled.
getObserverOfClass | ( | $observerClass | ) |
Gets the instance of the observer of class $observerClass
string | $observerClass | The class name of the observer |
Références null.
update | ( | $event, | |
$params | |||
) |
Call all observers for $event with $params
string | $event | Name of the event |
array | $params | Params of the event |
Implémente JObserverUpdaterInterface.
Références $params.
|
protected |
|
protected |
|
protected |