Open Journal Systems
3.3.0
|
Public Member Functions | |
addListener ($eventName, $listener, $priority=0) | |
addListener ($eventName, $listener, $priority=0) | |
addSubscriber (EventSubscriberInterface $subscriber) | |
addSubscriber (EventSubscriberInterface $subscriber) | |
dispatch ($eventName, Event $event=null) | |
dispatch ($eventName, Event $event=null) | |
getListenerPriority ($eventName, $listener) | |
getListenerPriority ($eventName, $listener) | |
getListeners ($eventName=null) | |
getListeners ($eventName=null) | |
hasListeners ($eventName=null) | |
hasListeners ($eventName=null) | |
removeListener ($eventName, $listener) | |
removeListener ($eventName, $listener) | |
removeSubscriber (EventSubscriberInterface $subscriber) | |
removeSubscriber (EventSubscriberInterface $subscriber) | |
Protected Member Functions | |
doDispatch ($listeners, $eventName, Event $event) | |
doDispatch ($listeners, $eventName, Event $event) | |
The EventDispatcherInterface is the central point of Symfony's event listener system.
Listeners are registered on the manager and events are dispatched through the manager.
Definition at line 28 of file lib/vendor/symfony/event-dispatcher/EventDispatcher.php.
Symfony\Component\EventDispatcher\EventDispatcher::addListener | ( | $eventName, | |
$listener, | |||
$priority = 0 |
|||
) |
{Adds an event listener that listens on the specified events.
string | $eventName | The event to listen on |
callable | $listener | The listener |
int | $priority | The higher this value, the earlier an event listener will be triggered in the chain (defaults to 0) |
Implements Symfony\Component\EventDispatcher\EventDispatcherInterface.
Definition at line 112 of file lib/vendor/symfony/event-dispatcher/EventDispatcher.php.
Referenced by Symfony\Component\EventDispatcher\EventDispatcher\addSubscriber(), and Symfony\Component\EventDispatcher\ContainerAwareEventDispatcher\lazyLoad().
Symfony\Component\EventDispatcher\EventDispatcher::addListener | ( | $eventName, | |
$listener, | |||
$priority = 0 |
|||
) |
{Adds an event listener that listens on the specified events.
string | $eventName | The event to listen on |
callable | $listener | The listener |
int | $priority | The higher this value, the earlier an event listener will be triggered in the chain (defaults to 0) |
Implements Symfony\Component\EventDispatcher\EventDispatcherInterface.
Definition at line 112 of file vendor/symfony/event-dispatcher/EventDispatcher.php.
Symfony\Component\EventDispatcher\EventDispatcher::addSubscriber | ( | EventSubscriberInterface | $subscriber | ) |
{Adds an event subscriber.The subscriber is asked for all the events he is interested in and added as a listener for these events.}
Implements Symfony\Component\EventDispatcher\EventDispatcherInterface.
Definition at line 137 of file vendor/symfony/event-dispatcher/EventDispatcher.php.
References Symfony\Component\EventDispatcher\EventDispatcher\addListener(), and Symfony\Component\EventDispatcher\EventSubscriberInterface\getSubscribedEvents().
Symfony\Component\EventDispatcher\EventDispatcher::addSubscriber | ( | EventSubscriberInterface | $subscriber | ) |
{Adds an event subscriber.The subscriber is asked for all the events he is interested in and added as a listener for these events.}
Implements Symfony\Component\EventDispatcher\EventDispatcherInterface.
Definition at line 137 of file lib/vendor/symfony/event-dispatcher/EventDispatcher.php.
References Symfony\Component\EventDispatcher\EventDispatcher\addListener(), and Symfony\Component\EventDispatcher\EventSubscriberInterface\getSubscribedEvents().
Symfony\Component\EventDispatcher\EventDispatcher::dispatch | ( | $eventName, | |
Event | $event = null |
||
) |
{Dispatches an event to all registered listeners.
string | $eventName | The name of the event to dispatch. The name of the event is the name of the method that is invoked on listeners. |
Event | $event | The event to pass to the event handlers/listeners If not supplied, an empty Event instance is created |
Implements Symfony\Component\EventDispatcher\EventDispatcherInterface.
Definition at line 36 of file lib/vendor/symfony/event-dispatcher/EventDispatcher.php.
References Symfony\Component\EventDispatcher\EventDispatcher\doDispatch(), and Symfony\Component\EventDispatcher\EventDispatcher\getListeners().
Symfony\Component\EventDispatcher\EventDispatcher::dispatch | ( | $eventName, | |
Event | $event = null |
||
) |
{Dispatches an event to all registered listeners.
string | $eventName | The name of the event to dispatch. The name of the event is the name of the method that is invoked on listeners. |
Event | $event | The event to pass to the event handlers/listeners If not supplied, an empty Event instance is created |
Implements Symfony\Component\EventDispatcher\EventDispatcherInterface.
Definition at line 36 of file vendor/symfony/event-dispatcher/EventDispatcher.php.
References Symfony\Component\EventDispatcher\EventDispatcher\doDispatch(), and Symfony\Component\EventDispatcher\EventDispatcher\getListeners().
|
protected |
Triggers the listeners of an event.
This method can be overridden to add functionality that is executed for each listener.
callable[] | $listeners | The event listeners |
string | $eventName | The name of the event to dispatch |
Event | $event | The event object to pass to the event handlers/listeners |
Definition at line 178 of file lib/vendor/symfony/event-dispatcher/EventDispatcher.php.
References Symfony\Component\EventDispatcher\Event\isPropagationStopped().
Referenced by Symfony\Component\EventDispatcher\EventDispatcher\dispatch().
|
protected |
Triggers the listeners of an event.
This method can be overridden to add functionality that is executed for each listener.
callable[] | $listeners | The event listeners |
string | $eventName | The name of the event to dispatch |
Event | $event | The event object to pass to the event handlers/listeners |
Definition at line 178 of file vendor/symfony/event-dispatcher/EventDispatcher.php.
References Symfony\Component\EventDispatcher\Event\isPropagationStopped().
Symfony\Component\EventDispatcher\EventDispatcher::getListenerPriority | ( | $eventName, | |
$listener | |||
) |
Gets the listener priority for a specific event.
Returns null if the event or the listener does not exist.
string | $eventName | The name of the event |
callable | $listener | The listener |
Reimplemented in Symfony\Component\EventDispatcher\ContainerAwareEventDispatcher, and Symfony\Component\EventDispatcher\ContainerAwareEventDispatcher.
Definition at line 88 of file vendor/symfony/event-dispatcher/EventDispatcher.php.
Symfony\Component\EventDispatcher\EventDispatcher::getListenerPriority | ( | $eventName, | |
$listener | |||
) |
Gets the listener priority for a specific event.
Returns null if the event or the listener does not exist.
string | $eventName | The name of the event |
callable | $listener | The listener |
Reimplemented in Symfony\Component\EventDispatcher\ContainerAwareEventDispatcher, and Symfony\Component\EventDispatcher\ContainerAwareEventDispatcher.
Definition at line 88 of file lib/vendor/symfony/event-dispatcher/EventDispatcher.php.
Symfony\Component\EventDispatcher\EventDispatcher::getListeners | ( | $eventName = null | ) |
{Gets the listeners of a specific event or all listeners sorted by descending priority.
string | $eventName | The name of the event |
Implements Symfony\Component\EventDispatcher\EventDispatcherInterface.
Reimplemented in Symfony\Component\EventDispatcher\ContainerAwareEventDispatcher, and Symfony\Component\EventDispatcher\ContainerAwareEventDispatcher.
Definition at line 55 of file lib/vendor/symfony/event-dispatcher/EventDispatcher.php.
Referenced by Symfony\Component\EventDispatcher\EventDispatcher\dispatch(), and Symfony\Component\EventDispatcher\EventDispatcher\hasListeners().
Symfony\Component\EventDispatcher\EventDispatcher::getListeners | ( | $eventName = null | ) |
{Gets the listeners of a specific event or all listeners sorted by descending priority.
string | $eventName | The name of the event |
Implements Symfony\Component\EventDispatcher\EventDispatcherInterface.
Reimplemented in Symfony\Component\EventDispatcher\ContainerAwareEventDispatcher, and Symfony\Component\EventDispatcher\ContainerAwareEventDispatcher.
Definition at line 55 of file vendor/symfony/event-dispatcher/EventDispatcher.php.
Symfony\Component\EventDispatcher\EventDispatcher::hasListeners | ( | $eventName = null | ) |
{Checks whether an event has any registered listeners.
string | $eventName | The name of the event |
Implements Symfony\Component\EventDispatcher\EventDispatcherInterface.
Reimplemented in Symfony\Component\EventDispatcher\ContainerAwareEventDispatcher, and Symfony\Component\EventDispatcher\ContainerAwareEventDispatcher.
Definition at line 104 of file lib/vendor/symfony/event-dispatcher/EventDispatcher.php.
References Symfony\Component\EventDispatcher\EventDispatcher\getListeners().
Symfony\Component\EventDispatcher\EventDispatcher::hasListeners | ( | $eventName = null | ) |
{Checks whether an event has any registered listeners.
string | $eventName | The name of the event |
Implements Symfony\Component\EventDispatcher\EventDispatcherInterface.
Reimplemented in Symfony\Component\EventDispatcher\ContainerAwareEventDispatcher, and Symfony\Component\EventDispatcher\ContainerAwareEventDispatcher.
Definition at line 104 of file vendor/symfony/event-dispatcher/EventDispatcher.php.
References Symfony\Component\EventDispatcher\EventDispatcher\getListeners().
Symfony\Component\EventDispatcher\EventDispatcher::removeListener | ( | $eventName, | |
$listener | |||
) |
{Removes an event listener from the specified events.
string | $eventName | The event to remove a listener from |
callable | $listener | The listener to remove |
Implements Symfony\Component\EventDispatcher\EventDispatcherInterface.
Reimplemented in Symfony\Component\EventDispatcher\ContainerAwareEventDispatcher, and Symfony\Component\EventDispatcher\ContainerAwareEventDispatcher.
Definition at line 121 of file lib/vendor/symfony/event-dispatcher/EventDispatcher.php.
Referenced by Symfony\Component\EventDispatcher\EventDispatcher\removeSubscriber().
Symfony\Component\EventDispatcher\EventDispatcher::removeListener | ( | $eventName, | |
$listener | |||
) |
{Removes an event listener from the specified events.
string | $eventName | The event to remove a listener from |
callable | $listener | The listener to remove |
Implements Symfony\Component\EventDispatcher\EventDispatcherInterface.
Reimplemented in Symfony\Component\EventDispatcher\ContainerAwareEventDispatcher, and Symfony\Component\EventDispatcher\ContainerAwareEventDispatcher.
Definition at line 121 of file vendor/symfony/event-dispatcher/EventDispatcher.php.
Symfony\Component\EventDispatcher\EventDispatcher::removeSubscriber | ( | EventSubscriberInterface | $subscriber | ) |
{}
Implements Symfony\Component\EventDispatcher\EventDispatcherInterface.
Definition at line 155 of file vendor/symfony/event-dispatcher/EventDispatcher.php.
References Symfony\Component\EventDispatcher\EventSubscriberInterface\getSubscribedEvents(), and Symfony\Component\EventDispatcher\EventDispatcher\removeListener().
Symfony\Component\EventDispatcher\EventDispatcher::removeSubscriber | ( | EventSubscriberInterface | $subscriber | ) |
{}
Implements Symfony\Component\EventDispatcher\EventDispatcherInterface.
Definition at line 155 of file lib/vendor/symfony/event-dispatcher/EventDispatcher.php.
References Symfony\Component\EventDispatcher\EventSubscriberInterface\getSubscribedEvents(), and Symfony\Component\EventDispatcher\EventDispatcher\removeListener().