Events\Event

Class Phalcon\Events\Event

This class offers contextual information of a fired event in the EventsManager

Methods

public __construct (string $type, object $source, [mixed $data], [boolean $cancelable])

Phalcon\Events\Event constructor

public setType (string $eventType)

Set the event’s type

public string getType ()

Returns the event’s type

public object getSource ()

Returns the event’s source

public setData (string $data)

Set the event’s data

登录查看完整内容