Zend Framework
2.4
|
Public Member Functions | |
__construct ($callback, array $metadata=array()) | |
Constructor. | |
getCallback () | |
Retrieve registered callback. | |
call (array $args=array()) | |
Invoke handler. | |
__invoke () | |
Invoke as functor. | |
getMetadata () | |
Get all callback metadata. | |
getMetadatum ($name) | |
Retrieve a single metadatum. | |
Protected Member Functions | |
registerCallback ($callback) | |
Registers the callback provided in the constructor. | |
validateStringCallbackFor54 ($callback) | |
Validate a static method call. | |
Protected Attributes | |
$callback | |
$metadata | |
Static Protected Attributes | |
static | $isPhp54 |
A handler for an event, event, filterchain, etc. Abstracts PHP callbacks, primarily to allow for lazy-loading and ensuring availability of default arguments (currying).
__construct | ( | $callback, | |
array | $metadata = array() |
||
) |
Constructor.
string | array | object | callable | $callback | PHP callback |
array | $metadata | Callback metadata |
__invoke | ( | ) |
Invoke as functor.
call | ( | array | $args = array() | ) |
Invoke handler.
array | $args | Arguments to pass to callback |
getCallback | ( | ) |
Retrieve registered callback.
getMetadata | ( | ) |
Get all callback metadata.
getMetadatum | ( | $name | ) |
Retrieve a single metadatum.
string | $name |
|
protected |
Registers the callback provided in the constructor.
callable | $callback |
Exception\InvalidCallbackException |
|
protected |
Validate a static method call.
Validates that a static method call in PHP 5.4 will actually work
string | $callback |
Exception\InvalidCallbackException | if invalid |
|
protected |
|
staticprotected |
|
protected |