Zend Framework
1.12
|
Public Member Functions | |
__construct ($callback, array $metadata=array()) | |
Constructor. | |
errorHandler ($errno, $errstr) | |
Error handler. | |
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 | |
$error = false | |
$metadata | |
__construct | ( | $callback, | |
array | $metadata = array() |
||
) |
Constructor.
string | $event | Event to which slot is subscribed |
string | array | object | $callback | PHP callback |
array | $options | Options used by the callback handler (e.g., priority) |
__invoke | ( | ) |
Invoke as functor.
call | ( | array | $args = array() | ) |
Invoke handler.
array | $args | Arguments to pass to callback |
errorHandler | ( | $errno, | |
$errstr | |||
) |
Error handler.
Used by registerCallback() when calling is_callable() to capture engine warnings.
int | $errno | |
string | $errstr |
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.
If you have pecl/weakref {
If a callback is a functor, or an array callback composing an object instance, this method will pass the object to a WeakRef instance prior to registering the callback.
Callable | $callback |
|
protected |
Validate a static method call.
Validates that a static method call in PHP 5.4 will actually work
string | $callback |
Zend_Stdlib_Exception_InvalidCallbackException | if invalid |
|
protected |
|
protected |
|
protected |