PEEL Shopping
Open source ecommerce : PEEL Shopping
Public Member Functions
Smarty_Internal_CacheResource_File Class Reference
Inheritance diagram for Smarty_Internal_CacheResource_File:
Smarty_CacheResource

Public Member Functions

 populate (Smarty_Template_Cached $cached, Smarty_Internal_Template $_template)
 populate Cached Object with meta data from Resource More...
 
 populateTimestamp (Smarty_Template_Cached $cached)
 populate Cached Object with timestamp and exists from Resource More...
 
 process (Smarty_Internal_Template $_template, Smarty_Template_Cached $cached=null)
 Read the cached template and process its header. More...
 
 writeCachedContent (Smarty_Internal_Template $_template, $content)
 Write the rendered template output to cache. More...
 
 clearAll (Smarty $smarty, $exp_time=null)
 Empty cache. More...
 
 clear (Smarty $smarty, $resource_name, $cache_id, $compile_id, $exp_time)
 Empty cache for a specific template. More...
 
 hasLock (Smarty $smarty, Smarty_Template_Cached $cached)
 Check is cache is locked for this template. More...
 
 acquireLock (Smarty $smarty, Smarty_Template_Cached $cached)
 Lock cache for this template. More...
 
 releaseLock (Smarty $smarty, Smarty_Template_Cached $cached)
 Unlock cache for this template. More...
 
- Public Member Functions inherited from Smarty_CacheResource
 populate (Smarty_Template_Cached $cached, Smarty_Internal_Template $_template)
 populate Cached Object with meta data from Resource More...
 
 populateTimestamp (Smarty_Template_Cached $cached)
 populate Cached Object with timestamp and exists from Resource More...
 
 process (Smarty_Internal_Template $_template, Smarty_Template_Cached $cached=null)
 Read the cached template and process header. More...
 
 writeCachedContent (Smarty_Internal_Template $_template, $content)
 Write the rendered template output to cache. More...
 
 getCachedContent (Smarty_Internal_Template $_template)
 Return cached content. More...
 
 clearAll (Smarty $smarty, $exp_time=null)
 Empty cache. More...
 
 clear (Smarty $smarty, $resource_name, $cache_id, $compile_id, $exp_time)
 Empty cache for a specific template. More...
 
 locked (Smarty $smarty, Smarty_Template_Cached $cached)
 
 hasLock (Smarty $smarty, Smarty_Template_Cached $cached)
 
 acquireLock (Smarty $smarty, Smarty_Template_Cached $cached)
 
 releaseLock (Smarty $smarty, Smarty_Template_Cached $cached)
 

Additional Inherited Members

- Static Public Member Functions inherited from Smarty_CacheResource
static load (Smarty $smarty, $type=null)
 Load Cache Resource Handler. More...
 
static invalidLoadedCache (Smarty $smarty)
 Invalid Loaded Cache Files. More...
 
- Static Public Attributes inherited from Smarty_CacheResource
static $resources = array()
 
- Static Protected Attributes inherited from Smarty_CacheResource
static $sysplugins
 

Detailed Description

Definition at line 19 of file smarty_internal_cacheresource_file.php.

Member Function Documentation

acquireLock ( Smarty  $smarty,
Smarty_Template_Cached  $cached 
)

Lock cache for this template.

Parameters
Smarty$smartySmarty object
Smarty_Template_Cached$cachedcached object

Definition at line 256 of file smarty_internal_cacheresource_file.php.

clear ( Smarty  $smarty,
  $resource_name,
  $cache_id,
  $compile_id,
  $exp_time 
)

Empty cache for a specific template.

Parameters
Smarty$_templatetemplate object
string$resource_nametemplate name
string$cache_idcache id
string$compile_idcompile id
integer$exp_timeexpiration time (number of seconds, not timestamp)
Returns
integer number of cache files deleted

Definition at line 134 of file smarty_internal_cacheresource_file.php.

clearAll ( Smarty  $smarty,
  $exp_time = null 
)

Empty cache.

Parameters
Smarty_Internal_Template$_templatetemplate object
integer$exp_timeexpiration time (number of seconds, not timestamp)
Returns
integer number of cache files deleted

Definition at line 119 of file smarty_internal_cacheresource_file.php.

hasLock ( Smarty  $smarty,
Smarty_Template_Cached  $cached 
)

Check is cache is locked for this template.

Parameters
Smarty$smartySmarty object
Smarty_Template_Cached$cachedcached object
Returns
booelan true or false if cache is locked

Definition at line 239 of file smarty_internal_cacheresource_file.php.

populate ( Smarty_Template_Cached  $cached,
Smarty_Internal_Template  $_template 
)

populate Cached Object with meta data from Resource

Parameters
Smarty_Template_Cached$cachedcached object
Smarty_Internal_Template$_templatetemplate object
Returns
void

Definition at line 28 of file smarty_internal_cacheresource_file.php.

populateTimestamp ( Smarty_Template_Cached  $cached)

populate Cached Object with timestamp and exists from Resource

Parameters
Smarty_Template_Cached$cachedcached object
Returns
void

Definition at line 74 of file smarty_internal_cacheresource_file.php.

process ( Smarty_Internal_Template  $_template,
Smarty_Template_Cached  $cached = null 
)

Read the cached template and process its header.

Parameters
Smarty_Internal_Template$_templatetemplate object
Smarty_Template_Cached$cachedcached object
Returns
booelan true or false if the cached content does not exist

Definition at line 87 of file smarty_internal_cacheresource_file.php.

releaseLock ( Smarty  $smarty,
Smarty_Template_Cached  $cached 
)

Unlock cache for this template.

Parameters
Smarty$smartySmarty object
Smarty_Template_Cached$cachedcached object

Definition at line 268 of file smarty_internal_cacheresource_file.php.

writeCachedContent ( Smarty_Internal_Template  $_template,
  $content 
)

Write the rendered template output to cache.

Parameters
Smarty_Internal_Template$_templatetemplate object
string$contentcontent to cache
Returns
boolean success

Definition at line 100 of file smarty_internal_cacheresource_file.php.


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

This documentation for Open ecommerce PEEL Shopping and PEEL.fr has been generated by Doxygen on Thu Oct 15 2015 14:41:43 - Peel ecommerce is a product of Agence web Advisto SAS. All rights reserved.