Interface Phalcon\Events\ManagerInterface

Source on GitHub

Phalcon\Events\ManagerInterface initializer


abstract public attach (string $eventType, object $handler, [unknown $priority])

Attach a listener to the events manager

abstract public detach (unknown $eventType, object $handler)

Detach a listener from the events manager

abstract public detachAll ([unknown $eventType])

Removes all events from the EventsManager

abstract public mixed fire (unknown $event, object $source, [mixed $data], [unknown $cancelable], [unknown $flag])

Fires a event in the events manager causing that the acive listeners will be notified about it

abstract public array getListeners (unknown $eventType, [unknown $full])

Returns all the attached listeners of a certain type