[ Index ]

PHP Cross Reference of vtigercrm-6.1.0

title

Body

[close]

/libraries/Smarty/libs/sysplugins/ -> smarty_internal_cacheresource_file.php (summary)

Smarty Internal Plugin CacheResource File

Author: Uwe Tews
Author: Rodney Rehm
File Size: 264 lines (10 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 1 class

Smarty_Internal_CacheResource_File:: (9 methods):
  populate()
  populateTimestamp()
  process()
  writeCachedContent()
  clearAll()
  clear()
  hasLock()
  acquireLock()
  releaseLock()


Class: Smarty_Internal_CacheResource_File  - X-Ref

This class does contain all necessary methods for the HTML cache on file system

Implements the file system as resource for the HTML cache Version ussing nocache inserts.

populate(Smarty_Template_Cached $cached, Smarty_Internal_Template $_template)   X-Ref
populate Cached Object with meta data from Resource

param: Smarty_Template_Cached   $cached    cached object
param: Smarty_Internal_Template $_template template object
return: void

populateTimestamp(Smarty_Template_Cached $cached)   X-Ref
populate Cached Object with timestamp and exists from Resource

param: Smarty_Template_Cached $cached cached object
return: void

process(Smarty_Internal_Template $_template, Smarty_Template_Cached $cached=null)   X-Ref
Read the cached template and process its header

param: Smarty_Internal_Template $_template template object
param: Smarty_Template_Cached $cached cached object
return: booelan true or false if the cached content does not exist

writeCachedContent(Smarty_Internal_Template $_template, $content)   X-Ref
Write the rendered template output to cache

param: Smarty_Internal_Template $_template template object
param: string                   $content   content to cache
return: boolean success

clearAll(Smarty $smarty, $exp_time = null)   X-Ref
Empty cache

param: Smarty_Internal_Template $_template template object
param: integer                  $exp_time  expiration time (number of seconds, not timestamp)
return: integer number of cache files deleted

clear(Smarty $smarty, $resource_name, $cache_id, $compile_id, $exp_time)   X-Ref
Empty cache for a specific template

param: Smarty  $_template     template object
param: string  $resource_name template name
param: string  $cache_id      cache id
param: string  $compile_id    compile id
param: integer $exp_time      expiration time (number of seconds, not timestamp)
return: integer number of cache files deleted

hasLock(Smarty $smarty, Smarty_Template_Cached $cached)   X-Ref
Check is cache is locked for this template

param: Smarty $smarty Smarty object
param: Smarty_Template_Cached $cached cached object
return: booelan true or false if cache is locked

acquireLock(Smarty $smarty, Smarty_Template_Cached $cached)   X-Ref
Lock cache for this template

param: Smarty $smarty Smarty object
param: Smarty_Template_Cached $cached cached object

releaseLock(Smarty $smarty, Smarty_Template_Cached $cached)   X-Ref
Unlock cache for this template

param: Smarty $smarty Smarty object
param: Smarty_Template_Cached $cached cached object



Generated: Fri Nov 28 20:08:37 2014 Cross-referenced by PHPXref 0.7.1