Zend Framework
3.0
|
Public Member Functions | |
__construct ($name, StorageInterface $storage, ArrayObject $params, &$result, Exception $exception) | |
Constructor. | |
setException (Exception $exception) | |
Set the exception to be thrown. | |
getException () | |
Get the exception to be thrown. | |
setThrowException ($flag) | |
Throw the exception or use the result. | |
getThrowException () | |
Throw the exception or use the result. | |
Public Member Functions inherited from PostEvent | |
__construct ($name, StorageInterface $storage, ArrayObject $params, &$result) | |
Constructor. | |
setResult (&$value) | |
Set the result/return value. | |
& | getResult () |
Get the result/return value. | |
Public Member Functions inherited from Event | |
__construct ($name, StorageInterface $storage, ArrayObject $params) | |
Constructor. | |
setTarget ($target) | |
Set the event target/context. | |
setStorage (StorageInterface $storage) | |
Alias of setTarget. | |
getStorage () | |
Alias of getTarget. | |
Public Member Functions inherited from Event | |
__construct ($name=null, $target=null, $params=null) | |
Constructor. | |
getName () | |
Get event name. | |
getTarget () | |
Get the event target. | |
setParams ($params) | |
Set parameters. | |
getParams () | |
Get all parameters. | |
getParam ($name, $default=null) | |
Get an individual parameter. | |
setName ($name) | |
Set the event name. | |
setTarget ($target) | |
Set the event target/context. | |
setParam ($name, $value) | |
Set an individual parameter to a value. | |
stopPropagation ($flag=true) | |
Stop further event propagation. | |
propagationIsStopped () | |
Is propagation stopped? | |
Protected Attributes | |
$exception | |
$throwException = true | |
Protected Attributes inherited from PostEvent | |
$result | |
__construct | ( | $name, | |
StorageInterface | $storage, | ||
ArrayObject | $params, | ||
& | $result, | ||
Exception | $exception | ||
) |
Constructor.
Accept a target and its parameters.
string | $name | |
StorageInterface | $storage | |
ArrayObject | $params | |
mixed | $result | |
Exception | $exception |
getException | ( | ) |
Get the exception to be thrown.
getThrowException | ( | ) |
Throw the exception or use the result.
setException | ( | Exception | $exception | ) |
setThrowException | ( | $flag | ) |
|
protected |
|
protected |