You are here

public function EventManager::hasListeners in Zircon Profile 8.0

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

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

vendor/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];
}