Event
class Event implements EventInterface
事件原型
Methods
__construct(string $name, string|object $target = null, mixed $data = null)
Event constructor.
string
getName()
Get event name
object|string|null
getTarget()
Get target/context from which event was triggered
mixed
getData()
Get parameters passed to the event
setName(string $name)
Set the event name
setTarget(object|string $target)
Set the event target
setData(array $data)
Set event data
stopPropagation()
Indicate whether or not to stop propagating this event
bool
isPropagationStopped()
Has this event indicated event propagation should stop?
Details
at line 49
__construct(string $name, string|object $target = null, mixed $data = null)
Event constructor.
at line 56
string
getName()
Get event name
at line 61
object|string|null
getTarget()
Get target/context from which event was triggered
at line 66
mixed
getData()
Get parameters passed to the event
at line 71
setName(string $name)
Set the event name
at line 79
setTarget(object|string $target)
Set the event target
at line 84
setData(array $data)
Set event data
at line 89
stopPropagation()
Indicate whether or not to stop propagating this event
at line 94
bool
isPropagationStopped()
Has this event indicated event propagation should stop?