attach()
clearListeners()
detach()
getEventCollection()
getEvents()
getListeners()
setEventCollection()
trigger()
triggerUntil()
$events
Event manager: notification system
Use the EventManager when you want to create a per-instance notification system for your objects.
attach(string $event, \Zend\EventManager\callable $callback, int $priority) : \Zend\Stdlib\CallbackHandler
string
\Zend\EventManager\callable
int
clearListeners(string $event) : void
string
detach(\Zend\Stdlib\CallbackHandler $listener) : bool
getEventCollection() : \Zend\EventManager\EventManagerInterface
getEvents() : array
array
getListeners(string $event) : \Zend\Stdlib\PriorityQueue | array
setEventCollection(\Zend\EventManager\EventManagerInterface $events) : void
null\Zend\EventManager\EventManagerInterface
trigger(string $event, object | string $context, array | object $argv, null | \Zend\EventManager\callable $callback) : \Zend\EventManager\ResponseCollection
string
objectstring
arrayobject
null\Zend\EventManager\callable
triggerUntil(string $event, string | object $context, array | object $argv, \Zend\EventManager\callable $callback) : \Zend\EventManager\ResponseCollection
deprecated | Please use trigger() |
---|
string
stringobject
arrayobject
\Zend\EventManager\callable