Documentation

內容目录

上一个主题

< Class Phalcon\Escaper\Exception

下一个主题

Class Phalcon\Events\Exception >

本页

Class Phalcon\Events\Event

Source on GitHub

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

Methods

public setType (unknown $type)

Event type

public getType ()

Event type

public getSource ()

Event source

public setData (unknown $data)

Event data

public getData ()

Event data

public getCancelable ()

Is event cancelable?

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

Phalcon\Events\Event constructor

public stop ()

Stops the event preventing propagation

public isStopped ()

Check whether the event is currently stopped

Follow along: