504.1. Zend\EventManager\GlobalEventManager
Event manager: notification system
Use the EventManager when you want to create a per-instance notification
system for your objects.
504.1.1. Methods
504.1.1.1. setEventCollection
-
setEventCollection()
Set the event collection on which this will operate
Parameters: | null|EventManagerInterface – |
Return type: | void |
504.1.1.2. getEventCollection
-
getEventCollection()
Get event collection on which this operates
Return type: | EventManagerInterface |
504.1.1.3. trigger
-
trigger()
Trigger an event
Parameters: |
- string –
- object|string –
- array|object –
|
Return type: | ResponseCollection
|
504.1.1.4. triggerUntil
-
triggerUntil()
Trigger listeners until return value of one causes a callback to evaluate
to true.
Parameters: |
- string –
- string|object –
- array|object –
- callable –
|
Return type: | ResponseCollection
|
504.1.1.5. attach
-
attach()
Attach a listener to an event
Parameters: |
- string –
- callable –
- int –
|
Return type: | CallbackHandler
|
504.1.1.6. detach
-
detach()
Detach a callback from a listener
Parameters: | CallbackHandler – |
Return type: | bool |
504.1.1.7. getEvents
-
getEvents()
Retrieve list of events this object manages
504.1.1.8. getListeners
-
getListeners()
Retrieve all listeners for a given event
Parameters: | string – |
Return type: | PriorityQueue|array |
504.1.1.9. clearListeners
-
clearListeners()
Clear all listeners for a given event
Parameters: | string – |
Return type: | void |