Option class for the ezcCacheStorage class.
Instances of this class store the options of ezcCacheStorage implementations.
Source for this file: /Cache/src/options/storage.php
ezcBaseOptions | --ezcCacheStorageOptions
Version: | //autogentag// |
string | read/write |
$extension
The (file) extension to use for the storage items. |
int | read/write |
$ttl
The time to live of cache entries. |
From ezcBaseOptions | |
---|---|
protected |
ezcBaseOptions::$properties
|
public ezcCacheStorageOptions |
__construct(
[ $options
= array()] )
Constructs a new options object. |
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. |
Constructs a new options object.
It also sets the default values of the format property
Name | Type | Description |
---|---|---|
$options |
array(string=>mixed) | The initial options to set. |
Type | Description |
---|---|
ezcBaseValueException |
If the value for the property is incorrect |
ezcBasePropertyNotFoundException |
If trying to assign a property which does not exist |
Method | Description |
---|---|
ezcBaseOptions::__construct() |
Construct a new options object. |