Events\Manager::getResponses

public array getResponses () Returns all the responses returned by every handler executed by the last ‘fire’ executed

Events\Manager::fire

public mixed fire (string $eventType, object $source, [mixed $data], [boolean $cancelable]) Fires an event in the events manager causing the active listeners to be notified about it $eventsManager->fire('db', $connection);

Events\Manager::enablePriorities

public enablePriorities (mixed $enablePriorities) Set if priorities are enabled in the EventsManager

Events\Manager::isCollecting

public isCollecting () Check if the events manager is collecting all all the responses returned by every registered listener in a single fire

Events\Manager::getListeners

public array getListeners (string $type) Returns all the attached listeners of a certain type

Events\Manager::attach

public attach (string $eventType, object | callable $handler, [int $priority]) Attach a listener to the events manager

Events\Manager::collectResponses

public collectResponses (mixed $collect) Tells the event manager if it needs to collect all the responses returned by every registered listener in a single fire

Events\Exception

extends class Phalcon\Exception implements Throwable Source on GitHub Methods final private Exception __clone () inherited from Exception Clone the exception public __construct ([string $message], [int $code], [Exception $previous]) inherited from Exception Exception constructor public __wakeup () inherited from Exception ... final public string getMessage () inherited from Exception Gets the Exception message final public int getCode () inherited from Exception Gets the Exception code fin

Events\Manager

implements Phalcon\Events\ManagerInterface Source on GitHub Phalcon Events Manager, offers an easy way to intercept and manipulate, if needed, the normal flow of operation. With the EventsManager the developer can create hooks or plugins that will offer monitoring of data, manipulation, conditional execution and much more. Methods public attach (string $eventType, object | callable $handler, [int $priority]) Attach a listener to the events manager public detach (string $eventType, object $handl

Events\Manager::detach

public detach (string $eventType, object $handler) Detach the listener from the events manager