attach()
clearListeners()
detach()
getEvents()
getListeners()
Interface for shared event listener collections
attach(string | array $id, string $event, \Zend\EventManager\callable $callback, int $priority) : \Zend\Stdlib\CallbackHandler | array
stringarray
Identifier(s) for event emitting component(s)
string
\Zend\EventManager\callable
PHP Callback
int
Priority at which listener should execute
\Zend\Stdlib\CallbackHandler
array
Either CallbackHandler or array of CallbackHandlersclearListeners(string | int $id, null | string $event) : bool
stringint
nullstring
bool
detach(string | int $id, \Zend\Stdlib\CallbackHandler $listener) : bool
stringint
\Zend\Stdlib\CallbackHandler
bool
Returns true if event and listener found, and unsubscribed; returns false if either event or listener not foundgetEvents(string | int $id) : array
stringint
array
getListeners(string | int $id, string | int $event) : false | \Zend\Stdlib\PriorityQueue