Hoa central
Public Member Functions | Protected Attributes | List of all members
Hoa\Cache\Frontend\Frontend Class Reference
Inheritance diagram for Hoa\Cache\Frontend\Frontend:

Public Member Functions

 __construct (Cache\Backend $backend)
 
 cleanCache ($lifetime=Cache::CLEAN_EXPIRED)
 
 getBackend ()
 
- Public Member Functions inherited from Hoa\Cache\Cache
 __construct (Array $parameters=[])
 
 getParameters ()
 
 ksort (Array &$array)
 

Protected Attributes

 $_backend = null
 

Additional Inherited Members

- Public Attributes inherited from Hoa\Cache\Cache
const CLEAN_ALL = -1
 
const CLEAN_EXPIRED = 0
 
const CLEAN_USER = 1
 
- Protected Member Functions inherited from Hoa\Cache\Cache
 makeId ($id=null)
 
 setId ($id)
 
 getId ()
 
 getIdMd5 ()
 
 removeId ()
 
- Static Protected Attributes inherited from Hoa\Cache\Cache
static $_id = []
 

Detailed Description

Class .

Frontend parent-class.

Definition at line 50 of file Frontend.php.

Constructor & Destructor Documentation

Hoa\Cache\Frontend\Frontend::__construct ( Cache\Backend  $backend)

Constructor.

Parameters
\Hoa\Cache\Backend$backendBackend instance.
Returns
void

Definition at line 67 of file Frontend.php.

68  {
69  parent::__construct();
70 
71  $this->_backend = $backend;
72 
73  return;
74  }

Member Function Documentation

Hoa\Cache\Frontend\Frontend::cleanCache (   $lifetime = Cache::CLEAN_EXPIRED)

Clean cache.

Parameters
int$lifetimeLifetime of caches.
Returns
void

Definition at line 82 of file Frontend.php.

83  {
84  if (null === $this->_backend) {
85  return;
86  }
87 
88  return $this->_backend->clean($lifetime);
89  }
Hoa\Cache\Frontend\Frontend::getBackend ( )

Get the backend.

Returns

Definition at line 96 of file Frontend.php.

97  {
98  return $this->_backend;
99  }

Member Data Documentation

Hoa\Cache\Frontend\Frontend::$_backend = null
protected

Definition at line 57 of file Frontend.php.


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