\JObserverUpdater
Observer updater pattern implementation for Joomla
Synopsis
class JObserverUpdater
implements
JObserverUpdaterInterface
{
- // members
- protected JObserverInterface $observers;
- protected $doCallObservers;
- // methods
- public void __construct()
- public void attachObserver()
- public JTableObserver|null getObserverOfClass()
- public void update()
- public boolean doCallObservers()
Hierarchy
Implements
Members
protected
- $doCallObservers
—
boolean
Process observers (useful when a class extends significantly an observerved method, and calls observers itself - $observers
—
JObserverInterface
Generic JObserverInterface observers for this JObservableInterface
Methods
public
- __construct() — Constructor
- attachObserver() — Adds an observer to the JObservableInterface instance updated by this This method can be called fron JObservableInterface::attachObserver
- doCallObservers() — Enable/Disable calling of observers (this is useful when calling parent:: function
- getObserverOfClass() — Gets the instance of the observer of class $observerClass
- update() — Call all observers for $event with $params