Path

ez components / documentation / api reference / 2007.2.1 / cache


eZ Components 2007.2.1

Cache: ezcCacheStorageOptions

[ Tutorial ] [ Class tree ] [ Element index ] [ ChangeLog ] [ Credits ]

Class: ezcCacheStorageOptions

Option class for the ezcCacheStorage class. [source]
Instances of this class store the option of ezcCacheStorage implementations.

Parents

ezcBaseOptions
   |
   --ezcCacheStorageOptions

Properties

string read/write  $extension
The (file) extension to use for the storage items.
int read/write  $ttl
The time to live of cache entries.

Inherited Member Variables

From ezcBaseOptions:
protected  ezcBaseOptions::$properties

Method Summary

public ezcCacheStorageOptions __construct( [$options = array()] )
Constructs a new options object.

Inherited Methods

From ezcBaseOptions :
public ezcBaseOptions ezcBaseOptions::__construct()
Construct a new options object.
public void ezcBaseOptions::merge()
Merge an array into the actual options object.
public bool ezcBaseOptions::offsetExists()
Returns if an option exists.
public mixed ezcBaseOptions::offsetGet()
Returns an option value.
public void ezcBaseOptions::offsetSet()
Set an option.
public void ezcBaseOptions::offsetUnset()
Unset an option.

Methods

__construct

ezcCacheStorageOptions __construct( [array(string=>mixed) $options = array()] )
Constructs a new options object.
It also sets the default values of the format property

Parameters

Name Type Description
$options array(string=>mixed) The initial options to set.

Throws

ClassDescription
ezcBasePropertyNotFoundException If a the value for the property options is not an instance of
ezcBaseValueException If a the value for a property is out of range.

Redefinition of

Method Description
ezcBaseOptions::__construct() Construct a new options object.

Last updated: Thu, 31 Jan 2008