Methods

Constructor

__construct(array | \Traversable | null $options) : \Zend\Cache\Pattern\PatternOptions

Parameters

$options

array\Traversablenull

Exceptions

\Zend\Cache\Exception\InvalidArgumentException

Returns

Get a configuration property

__get(string $key) : mixed
Inherited

see \Zend\Stdlib\ParameterObject::__get()
inherited_from \Zend\Stdlib\AbstractOptions::__get()

Parameters

$key

string

Exceptions

\Zend\Stdlib\Exception\BadMethodCallException

Returns

mixed

Test if a configuration property is null

__isset(string $key) : bool
Inherited

see \Zend\Stdlib\ParameterObject::__isset()
inherited_from \Zend\Stdlib\AbstractOptions::__isset()

Parameters

$key

string

Returns

bool

Set a configuration property

__set(string $key, mixed $value) : void
Inherited

see \Zend\Stdlib\ParameterObject::__set()
inherited_from \Zend\Stdlib\AbstractOptions::__set()

Parameters

$key

string

$value

mixed

Exceptions

\Zend\Stdlib\Exception\BadMethodCallException

Set a configuration property to NULL

__unset(string $key) : void
Inherited

see \Zend\Stdlib\ParameterObject::__unset()
inherited_from \Zend\Stdlib\AbstractOptions::__unset()

Parameters

$key

string

Exceptions

\Zend\Stdlib\Exception\InvalidArgumentException

Do we cache by default?

getCacheByDefault() : bool

Used by: - ClassCache - ObjectCache

Returns

bool

Will we cache output?

getCacheOutput() : bool

Used by: - CallbackCache - ClassCache - ObjectCache

Returns

bool

Get class name

getClass() : null | string

Used by: - ClassCache

Returns

nullstring

Get list of methods from which to cache return values

getClassCacheMethods() : array

Used by: - ClassCache

Returns

array

Get list of methods from which NOT to cache return values

getClassNonCacheMethods() : array

Used by: - ClassCache

Returns

array

Gets directory permission

getDirPermission() : false | int

Returns

falseint

Is file locking enabled?

getFileLocking() : bool

Used by: - CaptureCache

Returns

bool

Gets file permission

getFilePermission() : false | int

Returns

falseint

Get value for index filename

getIndexFilename() : string

Returns

string

Get object to cache

getObject() : null | object

Returns

nullobject

Should we cache magic properties?

getObjectCacheMagicProperties() : bool

Used by: - ObjectCache

Returns

bool

Get list of object methods for which to cache return values

getObjectCacheMethods() : array

Returns

array

Get object key

getObjectKey() : string

Used by: - ObjectCache

Returns

string

Get list of object methods for which NOT to cache return values

getObjectNonCacheMethods() : array

Returns

array

Get location of public directory

getPublicDir() : null | string

Used by: - CaptureCache

Returns

nullstring

Get storage adapter

getStorage() : null | \Zend\Cache\Storage\StorageInterface

Used by: - CallbackCache - ClassCache - ObjectCache - OutputCache

Returns

Get umask

getUmask() : false | int

Used by: - CaptureCache

Returns

falseint

Set flag indicating whether or not to cache by default

setCacheByDefault(bool $cacheByDefault) : \Zend\Cache\Pattern\PatternOptions

Used by: - ClassCache - ObjectCache

Parameters

$cacheByDefault

bool

Returns

Set whether or not to cache output

setCacheOutput(bool $cacheOutput) : \Zend\Cache\Pattern\PatternOptions

Used by: - CallbackCache - ClassCache - ObjectCache

Parameters

$cacheOutput

bool

Returns

Set class name

setClass(string $class) : \Zend\Cache\Pattern\PatternOptions

Used by: - ClassCache

Parameters

$class

string

Exceptions

\Zend\Cache\Exception\InvalidArgumentException

Returns

Set list of method return values to cache

setClassCacheMethods(array $classCacheMethods) : \Zend\Cache\Pattern\PatternOptions

Used by: - ClassCache

Parameters

$classCacheMethods

array

Returns

Set list of method return values NOT to cache

setClassNonCacheMethods(array $classNonCacheMethods) : \Zend\Cache\Pattern\PatternOptions

Used by: - ClassCache

Parameters

$classNonCacheMethods

array

Returns

Set directory permission

setDirPermission(false | int $dirPermission) : \Zend\Cache\Pattern\PatternOptions

Parameters

$dirPermission

falseint

Exceptions

\Zend\Cache\Exception\InvalidArgumentException

Returns

Set whether or not file locking should be used

setFileLocking(bool $fileLocking) : \Zend\Cache\Pattern\PatternOptions

Used by: - CaptureCache

Parameters

$fileLocking

bool

Returns

Set file permission

setFilePermission(false | int $filePermission) : \Zend\Cache\Pattern\PatternOptions

Parameters

$filePermission

falseint

Exceptions

\Zend\Cache\Exception\InvalidArgumentException

Returns

Set one or more configuration properties

setFromArray(array | \Traversable | \Zend\Stdlib\AbstractOptions $options) : \Zend\Stdlib\AbstractOptions
Inherited

inherited_from \Zend\Stdlib\AbstractOptions::setFromArray()

Parameters

$options

array\Traversable\Zend\Stdlib\AbstractOptions

Exceptions

\Zend\Stdlib\Exception\InvalidArgumentException

Returns

\Zend\Stdlib\AbstractOptionsProvides fluent interface

Set value for index filename

setIndexFilename(string $indexFilename) : \Zend\Cache\Pattern\PatternOptions

Parameters

$indexFilename

string

Returns

Set object to cache

setObject(mixed $object) : \Zend\Cache\Pattern\PatternOptions

Set flag indicating whether or not to cache magic properties

setObjectCacheMagicProperties(bool $objectCacheMagicProperties) : \Zend\Cache\Pattern\PatternOptions

Used by: - ObjectCache

Parameters

$objectCacheMagicProperties

bool

Returns

Set list of object methods for which to cache return values

setObjectCacheMethods(array $objectCacheMethods) : \Zend\Cache\Pattern\PatternOptions

Parameters

$objectCacheMethods

array

Exceptions

\Zend\Cache\Exception\InvalidArgumentException

Returns

Set the object key part.

setObjectKey(null | string $objectKey) : \Zend\Cache\Pattern\PatternOptions

Used to generate a callback key in order to speed up key generation.

Used by: - ObjectCache

Parameters

$objectKey

nullstring

The object key or NULL to use the objects class name

Returns

Set list of object methods for which NOT to cache return values

setObjectNonCacheMethods(array $objectNonCacheMethods) : \Zend\Cache\Pattern\PatternOptions

Parameters

$objectNonCacheMethods

array

Exceptions

\Zend\Cache\Exception\InvalidArgumentException

Returns

Set location of public directory

setPublicDir(string $publicDir) : \Zend\Cache\Pattern\PatternOptions

Used by: - CaptureCache

Parameters

$publicDir

string

Exceptions

\Zend\Cache\Exception\InvalidArgumentException

Returns

Set storage adapter

setStorage(string | array | \Zend\Cache\Storage\StorageInterface $storage) : \Zend\Cache\Pattern\PatternOptions

Required for the following Pattern classes: - CallbackCache - ClassCache - ObjectCache - OutputCache

Parameters

Returns

Set umask

setUmask(false | int $umask) : \Zend\Cache\Pattern\PatternOptions

Used by: - CaptureCache

Parameters

$umask

falseint

Exceptions

\Zend\Cache\Exception\InvalidArgumentException

Returns

Cast to array

toArray() : array
Inherited

inherited_from \Zend\Stdlib\AbstractOptions::toArray()

Returns

array

Normalize object methods

normalizeObjectMethods(array $methods) : array

Recursively casts values to lowercase, then determines if any are in a list of methods not handled, raising an exception if so.

Parameters

$methods

array

Exceptions

\Zend\Cache\Exception\InvalidArgumentException

Returns

array

Recursively apply strtolower on all values of an array, and return as a list of unique values

recursiveStrtolower(array $array) : array

Parameters

$array

array

Returns

array

Create a storage object from a given specification

storageFactory(array | string | \Zend\Cache\Storage\StorageInterface $storage) : \Zend\Cache\Storage\StorageInterface

 Properties

 

We use the __ prefix to avoid collisions with properties in user-implementations.

$__strictMode__ : bool
Inherited

inherited_from \Zend\Stdlib\AbstractOptions::$$__strictMode__
 

Used by: - ClassCache - ObjectCache

$cacheByDefault : bool

 

Used by: - CallbackCache - ClassCache - ObjectCache

$cacheOutput : bool

 

Used by: - ClassCache

$class : null | string

 

Used by: - ClassCache

$classCacheMethods : array

 

Used by: - ClassCache

$classNonCacheMethods : array

 

Used by: - CaptureCache

$dirPermission : false | int

 

Used by: - CaptureCache

$fileLocking : bool

 

Used by: - CaptureCache

$filePermission : false | int

 

Used by: - CaptureCache

$indexFilename : string

 

Used by: - ObjectCache

$object : null | object

 

Used by: - ObjectCache

$objectCacheMagicProperties : bool

 

Used by: - ObjectCache

$objectCacheMethods : array

 

Used by: - ObjectCache

$objectKey : null | string

 

Used by: - ObjectCache

$objectNonCacheMethods : array

 

Used by: - CaptureCache

$publicDir : null | string

 

Used by: - CallbackCache - ClassCache - ObjectCache - OutputCache

$storage : null | \Zend\Cache\Storage\StorageInterface

 

Used by: - CaptureCache

$umask : false | int