class 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.

@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>

Hierarchy

Expanded class hierarchy of EventManager

1 file declares its use of EventManager

File

drupal/core/vendor/doctrine/common/lib/Doctrine/Common/EventManager.php, line 37

Namespace

Doctrine\Common
View source

Members

Namesort descending Modifiers Type Description Overrides
EventManager::$_listeners private property Map of registered listeners. <event> => <listeners>
EventManager::addEventListener public function Adds an event listener that listens on the specified events.
EventManager::addEventSubscriber 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::dispatchEvent public function Dispatches an event to all registered listeners.
EventManager::getListeners public function Gets the listeners of a specific event or all listeners.
EventManager::hasListeners public function Checks whether an event has any registered listeners.
EventManager::removeEventListener public function Removes an event listener from the specified events.
EventManager::removeEventSubscriber 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.