Zend Framework
3.0
|
Representation of an event. More...
Public Member Functions | |
getName () | |
Get event name. | |
getTarget () | |
Get target/context from which event was triggered. | |
getParams () | |
Get parameters passed to the event. | |
getParam ($name, $default=null) | |
Get a single parameter by name. | |
setName ($name) | |
Set the event name. | |
setTarget ($target) | |
Set the event target/context. | |
setParams ($params) | |
Set event parameters. | |
setParam ($name, $value) | |
Set a single parameter by key. | |
stopPropagation ($flag=true) | |
Indicate whether or not the parent EventManagerInterface should stop propagating events. | |
propagationIsStopped () | |
Has this event indicated event propagation should stop? | |
Representation of an event.
getName | ( | ) |
getParam | ( | $name, | |
$default = null |
|||
) |
Get a single parameter by name.
string | $name | |
mixed | $default | Default value to return if parameter does not exist |
Implemented in ViewEvent, Event, and TableGatewayEvent.
getParams | ( | ) |
Get parameters passed to the event.
Implemented in ViewEvent, Event, and TableGatewayEvent.
getTarget | ( | ) |
Get target/context from which event was triggered.
Implemented in Event, and TableGatewayEvent.
propagationIsStopped | ( | ) |
Has this event indicated event propagation should stop?
Implemented in Event, and TableGatewayEvent.
setName | ( | $name | ) |
setParam | ( | $name, | |
$value | |||
) |
Set a single parameter by key.
string | $name | |
mixed | $value |
Implemented in ViewEvent, Event, and TableGatewayEvent.
setParams | ( | $params | ) |
Set event parameters.
array | ArrayAccess | $params |
Implemented in ViewEvent, TableGatewayEvent, and Event.
setTarget | ( | $target | ) |
Set the event target/context.
null | string | object | $target |
Implemented in Event, TableGatewayEvent, and Event.
stopPropagation | ( | $flag = true | ) |
Indicate whether or not the parent EventManagerInterface should stop propagating events.
bool | $flag |
Implemented in Event, and TableGatewayEvent.