You are here

public function EventManager::getListeners in Plug 7

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

lib/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;
}