Representation of an event

category Zend
package Zend_EventManager
copyright Copyright (c) 2005-2015 Zend Technologies USA Inc. (http://www.zend.com)
license New BSD License

 Methods

Get event name

getName() : string

Returns

string

Get a single parameter by name

getParam(string $name, mixed $default = null) : mixed

Parameters

$name

string

$default

mixed

Default value to return if parameter does not exist

Returns

mixed

Get parameters passed to the event

getParams() : array | \ArrayAccess

Returns

array\ArrayAccess

Get target/context from which event was triggered

getTarget() : null | string | object

Returns

nullstringobject

Has this event indicated event propagation should stop?

propagationIsStopped() : boolean

Returns

boolean

Set the event name

setName(string $name) : void

Parameters

$name

string

Set a single parameter by key

setParam(string $name, mixed $value) : void

Parameters

$name

string

$value

mixed

Set event parameters

setParams(string $params) : void

Parameters

$params

string

Set the event target/context

setTarget(null|string|object $target) : void

Parameters

$target

nullstringobject

Indicate whether or not the parent EventCollection should stop propagating events

stopPropagation(boolean $flag = true) : void

Parameters

$flag

boolean