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
stringarrayIdentifier(s) for event emitting component(s)
string
\Zend\EventManager\callablePHP Callback
intPriority at which listener should execute
\Zend\Stdlib\CallbackHandlerarrayEither CallbackHandler or array of CallbackHandlersclearListeners(string | int $id, null | string $event) : bool
stringint
nullstring
booldetach(string | int $id, \Zend\Stdlib\CallbackHandler $listener) : bool
stringint
\Zend\Stdlib\CallbackHandler
boolReturns true if event and listener found, and unsubscribed; returns false if either event or listener not foundgetEvents(string | int $id) : array
stringint
arraygetListeners(string | int $id, string | int $event) : false | \Zend\Stdlib\PriorityQueue