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é
Tout Structures de données Espaces de nommage Fichiers Fonctions Variables Pages
Référence de la classe JObservable
+ Graphe d'héritage de JObservable:

Fonctions membres publiques

 __construct ()
 
 getState ()
 
 notify ()
 
 attach ($observer)
 
 detach ($observer)
 

Attributs protégés

 $_observers = array()
 
 $_state = null
 
 $_methods = array()
 

Description détaillée

Abstract observable class to implement the observer design pattern

Depuis
1.5
Obsolète:
2.5

Documentation des constructeurs et destructeur

◆ __construct()

__construct ( )

Constructor

Note: Make Sure it's not directly instantiated

Depuis
1.5
Obsolète:
2.5

Documentation des fonctions membres

◆ attach()

attach (   $observer)

Attach an observer object

Paramètres
object$observerAn observer object to attach
Renvoie
void
Depuis
1.5
Obsolète:
2.5

Références $check, $class, et $key.

◆ detach()

detach (   $observer)

Detach an observer object

Paramètres
object$observerAn observer object to detach.
Renvoie
boolean True if the observer object was detached.
Depuis
1.5
Obsolète:
2.5

Références $key.

◆ getState()

getState ( )

Get the state of the JObservable object

Renvoie
mixed The state of the object.
Depuis
1.5
Obsolète:
2.5

◆ notify()

notify ( )

Update each attached observer object and return an array of their return values

Renvoie
array Array of return values from the observers
Depuis
1.5
Obsolète:
2.5

Références $return.

Documentation des champs

◆ $_methods

$_methods = array()
protected

◆ $_observers

$_observers = array()
protected

◆ $_state

$_state = null
protected

La documentation de cette classe a été générée à partir du fichier suivant :