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.
@license http://www.opensource.org/licenses/lgpl-license.php LGPL @link www.doctrine-project.org @since 2.0 @version $Revision: 3938 $ @author Guilherme Blanco <guilhermeblanco@hotmail.com> @author Jonathan Wage <jonwage@gmail.com> @author Roman Borschel <roman@code-factory.org>
Expanded class hierarchy of EventManager
Name![]() |
Modifiers | Type | Description | Overrides |
---|---|---|---|---|
EventManager:: |
private | property | Map of registered listeners. <event> => <listeners> | |
EventManager:: |
public | function | Adds an event listener that listens on the specified events. | |
EventManager:: |
public | function | Adds an EventSubscriber. The subscriber is asked for all the events he is interested in and added as a listener for these events. | |
EventManager:: |
public | function | Dispatches an event to all registered listeners. | |
EventManager:: |
public | function | Gets the listeners of a specific event or all listeners. | |
EventManager:: |
public | function | Checks whether an event has any registered listeners. | |
EventManager:: |
public | function | Removes an event listener from the specified events. | |
EventManager:: |
public | function | Removes an EventSubscriber. The subscriber is asked for all the events it is interested in and removed as a listener for these events. |