Zend\EventManager\GlobalEventManager
Event manager: notification system
Use the EventManager when you want to create a per-instance notification
system for your objects.
Synopsis
class GlobalEventManager
{
- // members
- protected EventManagerInterface $events;
- // methods
- public static void setEventCollection()
- public static EventManagerInterface getEventCollection()
- public static ResponseCollection trigger()
- public static ResponseCollection triggerUntil()
- public static CallbackHandler attach()
- public static bool detach()
- public static array getEvents()
- public static PriorityQueue|array getListeners()
- public static void clearListeners()
Members
protected
- $events — Zend\EventManager\EventManagerInterface
Methods
public
- attach() — Attach a listener to an event
- clearListeners() — Clear all listeners for a given event
- detach() — Detach a callback from a listener
- getEventCollection() — Get event collection on which this operates
- getEvents() — Retrieve list of events this object manages
- getListeners() — Retrieve all listeners for a given event
- setEventCollection() — Set the event collection on which this will operate
- trigger() — Trigger an event
- triggerUntil() — Trigger listeners until return value of one causes a callback to evaluate to true.