Zend Framework
3.0
|
Public Member Functions | |
setOptions (PatternOptions $options) | |
Set options. | |
call ($method, array $args=[]) | |
Call and cache a class method. | |
generateKey ($method, array $args=[]) | |
Generate a unique key in base of a key representing the callback part and a key representing the arguments part. | |
__call ($method, array $args) | |
Class method call handler. | |
__set ($name, $value) | |
Writing data to properties. | |
__get ($name) | |
Reading data from properties. | |
__isset ($name) | |
Checking existing properties. | |
__unset ($name) | |
Unseting a property. | |
__toString () | |
Handle casting to string. | |
__invoke () | |
Handle invoke calls. | |
Public Member Functions inherited from CallbackCache | |
setOptions (PatternOptions $options) | |
Set options. | |
call ($callback, array $args=[]) | |
Call the specified callback or get the result from cache. | |
__call ($function, array $args) | |
function call handler | |
generateKey ($callback, array $args=[]) | |
Generate a unique key in base of a key representing the callback part and a key representing the arguments part. | |
Public Member Functions inherited from AbstractPattern | |
setOptions (PatternOptions $options) | |
Set pattern options. | |
getOptions () | |
Get all pattern options. | |
Protected Member Functions | |
generateCallbackKey ($callback, array $args=[]) | |
Generate a unique key in base of a key representing the callback part and a key representing the arguments part. | |
Protected Member Functions inherited from CallbackCache | |
generateCallbackKey ($callback, array $args) | |
Generate a unique key in base of a key representing the callback part and a key representing the arguments part. | |
generateArgumentsKey (array $args) | |
Generate a unique key of the argument part. | |
Additional Inherited Members | |
Protected Attributes inherited from AbstractPattern | |
$options | |
__call | ( | $method, | |
array | $args | ||
) |
Class method call handler.
string | $method | Method name to call |
array | $args | Method arguments |
Exception\RuntimeException | |
\Exception |
__get | ( | $name | ) |
Reading data from properties.
NOTE: Magic properties will be cached too if the option cacheMagicProperties is enabled and the property doesn't exist in real. If so it calls __get.
string | $name |
__invoke | ( | ) |
Handle invoke calls.
__isset | ( | $name | ) |
Checking existing properties.
NOTE: Magic properties will be cached too if the option cacheMagicProperties is enabled and the property doesn't exist in real. If so it calls __get.
string | $name |
__set | ( | $name, | |
$value | |||
) |
Writing data to properties.
NOTE: Magic properties will be cached too if the option cacheMagicProperties is enabled and the property doesn't exist in real. If so it calls __set and removes cached data of previous __get and __isset calls.
string | $name | |
mixed | $value |
__toString | ( | ) |
Handle casting to string.
__unset | ( | $name | ) |
Unseting a property.
NOTE: Magic properties will be cached too if the option cacheMagicProperties is enabled and the property doesn't exist in real. If so it removes previous cached __isset and __get calls.
string | $name |
call | ( | $method, | |
array | $args = [] |
||
) |
Call and cache a class method.
string | $method | Method name to call |
array | $args | Method arguments |
Exception\RuntimeException | |
\Exception |
|
protected |
Generate a unique key in base of a key representing the callback part and a key representing the arguments part.
callable | $callback | A valid callback |
array | $args | Callback arguments |
Exception\RuntimeException |
generateKey | ( | $method, | |
array | $args = [] |
||
) |
Generate a unique key in base of a key representing the callback part and a key representing the arguments part.
string | $method | The method |
array | $args | Callback arguments |
Exception\RuntimeException |
setOptions | ( | PatternOptions | $options | ) |
Set options.
PatternOptions | $options |
Exception\InvalidArgumentException |
Implements PatternInterface.