Zend Framework
3.0
|
Public Member Functions | |
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. | |
generateArgumentsKey (array $args) | |
Generate a unique key of the argument part. | |
Additional Inherited Members | |
Protected Attributes inherited from AbstractPattern | |
$options | |
__call | ( | $function, | |
array | $args | ||
) |
function call handler
string | $function | Function name to call |
array | $args | Function arguments |
Exception\RuntimeException | |
\Exception |
call | ( | $callback, | |
array | $args = [] |
||
) |
Call the specified callback or get the result from cache.
callable | $callback | A valid callback |
array | $args | Callback arguments |
Exception\RuntimeException | if invalid cached data |
\Exception |
|
protected |
Generate a unique key of the argument part.
array | $args |
Exception\RuntimeException |
|
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 | if callback not serializable |
Exception\InvalidArgumentException | if invalid callback |
generateKey | ( | $callback, | |
array | $args = [] |
||
) |
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 | |
Exception\InvalidArgumentException |
setOptions | ( | PatternOptions | $options | ) |
Set options.
PatternOptions | $options |
Exception\InvalidArgumentException | if missing storage option |
Implements PatternInterface.