You are here

public function EventManager::getListeners in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/doctrine/common/lib/Doctrine/Common/EventManager.php \Doctrine\Common\EventManager::getListeners()

Gets the listeners of a specific event or all listeners.

Parameters

string|null $event The name of the event.:

Return value

array The event listeners for the specified event, or all event listeners.

File

vendor/doctrine/common/lib/Doctrine/Common/EventManager.php, line 71

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.

Namespace

Doctrine\Common

Code

public function getListeners($event = null) {
  return $event ? $this->_listeners[$event] : $this->_listeners;
}