Methods

Class method call handler

__call(string $method, array $args) : mixed

Parameters

$method

string

Method name to call

$args

array

Method arguments

Exceptions

\Zend\Cache\Exception\RuntimeException
\Exception

Returns

mixed

Reading data from properties.

__get(string $name) : mixed

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.

see \Zend\Cache\Pattern\http://php.net/manual/language.oop5.overloading.php#language.oop5.overloading.members

Parameters

$name

string

Returns

mixed

Handle invoke calls

__invoke() : mixed

see \Zend\Cache\Pattern\http://php.net/manual/language.oop5.magic.php#language.oop5.magic.invoke

Returns

mixed

Checking existing properties.

__isset(string $name) : bool

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.

see \Zend\Cache\Pattern\http://php.net/manual/language.oop5.overloading.php#language.oop5.overloading.members

Parameters

$name

string

Returns

bool

Writing data to properties.

__set(string $name, mixed $value) : void

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.

see \Zend\Cache\Pattern\http://php.net/manual/language.oop5.overloading.php#language.oop5.overloading.members

Parameters

$name

string

$value

mixed

Handle casting to string

__toString() : string

see \Zend\Cache\Pattern\http://php.net/manual/language.oop5.magic.php#language.oop5.magic.tostring

Returns

string

Unseting a property.

__unset(string $name) : void

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.

see \Zend\Cache\Pattern\http://php.net/manual/language.oop5.overloading.php#language.oop5.overloading.members

Parameters

$name

string

Call and cache a class method

call(string $method, array $args) : mixed

Parameters

$method

string

Method name to call

$args

array

Method arguments

Exceptions

\Zend\Cache\Exception\RuntimeException
\Exception

Returns

mixed

Generate a unique key in base of a key representing the callback part and a key representing the arguments part.

generateKey(string $method, array $args) : string

Parameters

$method

string

The method

$args

array

Callback arguments

Exceptions

\Zend\Cache\Exception\RuntimeException

Returns

string

Get all pattern options

getOptions() : \Zend\Cache\Pattern\PatternOptions
Inherited

inherited_from \Zend\Cache\Pattern\AbstractPattern::getOptions()
inherited_from \Zend\Cache\Pattern\CallbackCache::getOptions()

Returns

Set options

setOptions(\Zend\Cache\Pattern\PatternOptions $options) : void

Generate a unique key of the argument part.

generateArgumentsKey(array $args) : string
Inherited

inherited_from \Zend\Cache\Pattern\CallbackCache::generateArgumentsKey()

Parameters

$args

array

Exceptions

\Zend\Cache\Exception\RuntimeException

Returns

string

Generate a unique key in base of a key representing the callback part and a key representing the arguments part.

generateCallbackKey(\Zend\Cache\Pattern\callable $callback, array $args) : string

Parameters

$callback

\Zend\Cache\Pattern\callable

A valid callback

$args

array

Callback arguments

Exceptions

\Zend\Cache\Exception\RuntimeException

Returns

string

 Properties

 

$options

$options : \Zend\Cache\Pattern\PatternOptions
Inherited

inherited_from \Zend\Cache\Pattern\AbstractPattern::$$options
inherited_from \Zend\Cache\Pattern\CallbackCache::$$options