Public Member Functions | Protected Attributes

Zend_Cache_Frontend_Class Class Reference

Inheritance diagram for Zend_Cache_Frontend_Class:
Zend_Cache_Core

Public Member Functions

 __construct (array $options=array())
 setSpecificLifetime ($specificLifetime=false)
 setPriority ($priority)
 setOption ($name, $value)
 setCachedEntity ($cachedEntity)
 setTagsArray ($tags=array())
 __call ($name, $parameters)

Protected Attributes

 $_specificOptions

Detailed Description

Definition at line 35 of file Class.php.


Constructor & Destructor Documentation

__construct ( array $  options = array() )

Constructor

Parameters:
array$optionsAssociative array of options
Exceptions:
Zend_Cache_Exception
Returns:
void

Definition at line 108 of file Class.php.


Member Function Documentation

__call ( name,
parameters 
)

Main method : call the specified method or get the result from cache

Parameters:
string$nameMethod name
array$parametersMethod parameters
Returns:
mixed Result

Definition at line 201 of file Class.php.

setCachedEntity ( cachedEntity )

Specific method to set the cachedEntity

if set to a class name, we will cache an abstract class and will use only static calls if set to an object, we will cache this object methods

Parameters:
mixed$cachedEntity

Definition at line 168 of file Class.php.

setOption ( name,
value 
)

Public frontend to set an option

Just a wrapper to get a specific behaviour for cached_entity

Parameters:
string$nameName of the option
mixed$valueValue of the option
Exceptions:
Zend_Cache_Exception
Returns:
void

Reimplemented from Zend_Cache_Core.

Definition at line 151 of file Class.php.

setPriority ( priority )

Set the priority (used by some particular backends)

Parameters:
int$priorityinteger between 0 (very low priority) and 10 (maximum priority)

Definition at line 136 of file Class.php.

setSpecificLifetime ( specificLifetime = false )

Set a specific life time

Parameters:
int$specificLifetime
Returns:
void

Definition at line 126 of file Class.php.

setTagsArray ( tags = array() )

Set the cache array

Parameters:
array$tags
Returns:
void

Definition at line 189 of file Class.php.


Field Documentation

$_specificOptions [protected]
Initial value:
 array(
        'cached_entity' => null,
        'cache_by_default' => true,
        'cached_methods' => array(),
        'non_cached_methods' => array()
    )

Not used for the core, just a sort a hint to get a common setOption() method (for the core and for frontends)

Reimplemented from Zend_Cache_Core.

Definition at line 55 of file Class.php.


The documentation for this class was generated from the following file: