Zend Framework  1.12
Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
Zend_Cache_Backend Class Reference

Public Member Functions

 __construct (array $options=array())
 Constructor.
 
 setDirectives ($directives)
 Set the frontend directives.
 
 setOption ($name, $value)
 Set an option.
 
 getOption ($name)
 Returns an option.
 
 getLifetime ($specificLifetime)
 Get the life time.
 
 isAutomaticCleaningAvailable ()
 Return true if the automatic cleaning is available for the backend.
 
 getTmpDir ()
 Determine system TMP directory and detect if we have read access.
 

Protected Member Functions

 _isGoodTmpDir ($dir)
 Verify if the given temporary directory is readable and writable.
 
 _loggerSanity ()
 Make sure if we enable logging that the Zend_Log class is available.
 
 _log ($message, $priority=4)
 Log a message at the WARN (4) priority.
 

Protected Attributes

 $_directives
 
 $_options = array()
 

Constructor & Destructor Documentation

__construct ( array  $options = array())

Constructor.

Parameters
array$optionsAssociative array of options
Exceptions
Zend_Cache_Exception
Returns
void

Member Function Documentation

_isGoodTmpDir (   $dir)
protected

Verify if the given temporary directory is readable and writable.

Parameters
string$dirtemporary directory
Returns
boolean true if the directory is ok
_log (   $message,
  $priority = 4 
)
protected

Log a message at the WARN (4) priority.

Parameters
string$message
Exceptions
Zend_Cache_Exception
Returns
void
_loggerSanity ( )
protected

Make sure if we enable logging that the Zend_Log class is available.

Create a default log object if none is set.

Exceptions
Zend_Cache_Exception
Returns
void
getLifetime (   $specificLifetime)

Get the life time.

if $specificLifetime is not false, the given specific life time is used else, the global lifetime is used

Parameters
int$specificLifetime
Returns
int Cache life time
getOption (   $name)

Returns an option.

Parameters
string$nameOptional, the options name to return
Exceptions
Zend_Cache_Exceptions
Returns
mixed
getTmpDir ( )

Determine system TMP directory and detect if we have read access.

inspired from Zend_File_Transfer_Adapter_Abstract

Returns
string
Exceptions
Zend_Cache_Exceptionif unable to determine directory
isAutomaticCleaningAvailable ( )

Return true if the automatic cleaning is available for the backend.

DEPRECATED : use getCapabilities() instead

Deprecated:
Returns
boolean
setDirectives (   $directives)

Set the frontend directives.

Parameters
array$directivesAssoc of directives
Exceptions
Zend_Cache_Exception
Returns
void
setOption (   $name,
  $value 
)

Set an option.

Parameters
string$name
mixed$value
Exceptions
Zend_Cache_Exception
Returns
void

Member Data Documentation

$_directives
protected
Initial value:
= array(
'lifetime' => 3600,
'logging' => false,
'logger' => null
)
$_options = array()
protected