Class Phalcon\Events\Event
implements Phalcon\Events\EventInterface
This class offers contextual information of a fired event in the EventsManager
Methods
public getType ()
Event type
public getSource ()
Event source
public getData ()
Event data
public __construct (string $type, object $source, [mixed $data], [boolean $cancelable])
Phalcon\Events\Event constructor
public setData ([mixed $data])
Sets event data.
public setType (mixed $type)
Sets event type.
public stop ()
Stops the event preventing propagation.
if ($event->isCancelable()) { $event->stop(); }
public isStopped ()
Check whether the event is currently stopped.
public isCancelable ()
Check whether the event is cancelable.
if ($event->isCancelable()) { $event->stop(); }
© 2011–2017 Phalcon Framework Team
Licensed under the Creative Commons Attribution License 3.0.
https://docs.phalconphp.com/en/latest/api/Phalcon_Events_Event.html