Doctrine\Common\EventManager
The EventManager is the central point of Doctrine's event listener system.
Listeners are registered on the manager and events are dispatched through the
manager.
- Author: Guilherme Blanco <guilhermeblanco@hotmail.com>
- License: http://www.opensource.org/licenses/lgpl-license.php LGPL
Synopsis
class EventManager
{
- // members
- private array $_listeners;
- // methods
- public boolean dispatchEvent()
- public array getListeners()
- public boolean hasListeners()
- public void addEventListener()
- public void removeEventListener()
- public void addEventSubscriber()
- public void removeEventSubscriber()
Hierarchy
Members
private
- $_listeners
—
array
Map of registered listeners.
Methods
public
- addEventListener() — Adds an event listener that listens on the specified events.
- addEventSubscriber() — Adds an EventSubscriber. The subscriber is asked for all the events he is interested in and added as a listener for these events.
- dispatchEvent() — Dispatches an event to all registered listeners.
- getListeners() — Gets the listeners of a specific event or all listeners.
- hasListeners() — Checks whether an event has any registered listeners.
- removeEventListener() — Removes an event listener from the specified events.
- removeEventSubscriber() — Removes an EventSubscriber. The subscriber is asked for all the events it is interested in and removed as a listener for these events.