Static Public Member Functions | Data Fields | Static Public Attributes | Static Protected Member Functions

Zend_Cache Class Reference

Static Public Member Functions

static factory ($frontend, $backend, $frontendOptions=array(), $backendOptions=array(), $customFrontendNaming=false, $customBackendNaming=false, $autoload=false)
static _makeBackend ($backend, $backendOptions, $customBackendNaming=false, $autoload=false)
static _makeFrontend ($frontend, $frontendOptions=array(), $customFrontendNaming=false, $autoload=false)
static throwException ($msg)

Data Fields

const CLEANING_MODE_ALL = 'all'
const CLEANING_MODE_OLD = 'old'
const CLEANING_MODE_MATCHING_TAG = 'matchingTag'
const CLEANING_MODE_NOT_MATCHING_TAG = 'notMatchingTag'
const CLEANING_MODE_MATCHING_ANY_TAG = 'matchingAnyTag'

Static Public Attributes

static $standardFrontends = array('Core', 'Output', 'Class', 'File', 'Function', 'Page')
static $standardBackends = array('File', 'Sqlite', 'Memcached', 'Apc', 'ZendPlatform', 'Xcache', 'TwoLevels')
static $standardExtendedBackends = array('File', 'Apc', 'TwoLevels', 'Memcached', 'Sqlite')
static $availableFrontends = array('Core', 'Output', 'Class', 'File', 'Function', 'Page')
static $availableBackends = array('File', 'Sqlite', 'Memcached', 'Apc', 'ZendPlatform', 'Xcache', 'TwoLevels')

Static Protected Member Functions

static _normalizeName ($name)

Detailed Description

Definition at line 28 of file Cache.php.


Member Function Documentation

static _makeBackend ( backend,
backendOptions,
customBackendNaming = false,
autoload = false 
) [static]

Frontend Constructor

Parameters:
string$backend
array$backendOptions
boolean$customBackendNaming
boolean$autoload
Returns:
Zend_Cache_Backend

Definition at line 123 of file Cache.php.

static _makeFrontend ( frontend,
frontendOptions = array(),
customFrontendNaming = false,
autoload = false 
) [static]

Backend Constructor

Parameters:
string$frontend
array$frontendOptions
boolean$customFrontendNaming
boolean$autoload
Returns:
Zend_Cache_Core|Zend_Cache_Frontend

Definition at line 164 of file Cache.php.

static _normalizeName ( name ) [static, protected]

Normalize frontend and backend names to allow multiple words TitleCased

Parameters:
string$nameName to normalize
Returns:
string

Definition at line 217 of file Cache.php.

static factory ( frontend,
backend,
frontendOptions = array(),
backendOptions = array(),
customFrontendNaming = false,
customBackendNaming = false,
autoload = false 
) [static]

Factory

Parameters:
mixed$frontendfrontend name (string) or Zend_Cache_Frontend_ object
mixed$backendbackend name (string) or Zend_Cache_Backend_ object
array$frontendOptionsassociative array of options for the corresponding frontend constructor
array$backendOptionsassociative array of options for the corresponding backend constructor
boolean$customFrontendNamingif true, the frontend argument is used as a complete class name ; if false, the frontend argument is used as the end of "Zend_Cache_Frontend_[...]" class name
boolean$customBackendNamingif true, the backend argument is used as a complete class name ; if false, the backend argument is used as the end of "Zend_Cache_Backend_[...]" class name
boolean$autoloadif true, there will no require_once for backend and frontend (usefull only for custom backends/frontends)
Exceptions:
Zend_Cache_Exception
Returns:
Zend_Cache_Core|Zend_Cache_Frontend

Definition at line 90 of file Cache.php.

static throwException ( msg ) [static]

Throw an exception

Note : for perf reasons, the "load" of Zend/Cache/Exception is dynamic

Parameters:
string$msgMessage for the exception
Exceptions:
Zend_Cache_Exception

Definition at line 204 of file Cache.php.


Field Documentation

const CLEANING_MODE_ALL = 'all'

Consts for clean() method

Definition at line 71 of file Cache.php.


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