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

public mixed getData ()

Returns the event’s data

public setCancelable (boolean $cancelable)

Sets if the event is cancelable

public boolean getCancelable ()

Check whether the event is cancelable

public stop ()

Stops the event preventing propagation

public isStopped ()

Check whether the event is currently stopped

© 2011–2016 Phalcon Framework Team
Licensed under the Creative Commons Attribution License 3.0.
https://docs.phalconphp.com/en/2.0.0/api/Phalcon_Events_Event.html

在线笔记
App下载
App下载

扫描二维码

下载编程狮App

公众号
微信公众号

编程狮公众号

意见反馈
返回顶部