You are here

public function EventManager::hasListeners in Plug 7

Checks whether an event has any registered listeners.

Parameters

string $event:

Return value

boolean TRUE if the specified event has any listeners, FALSE otherwise.

File

lib/doctrine/common/lib/Doctrine/Common/EventManager.php, line 83

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 hasListeners($event) {
  return isset($this->_listeners[$event]) && $this->_listeners[$event];
}