Class patTemplate_TemplateCache_File

Description

patTemplate Template cache that stores data on filesystem

$Id: File.php,v 1.2 2004/09/10 11:36:25 schst Exp $

Possible parameters for the cache are:

  • cacheFolder : set the folder from which to load the cache
  • lifetime : seconds for which the cache is valid, if set to auto, it will check whether the cache is older than the original file (if the reader supports this)
  • prefix for the filenames

Located in /includes/patTemplate/patTemplate/TemplateCache/File.php (line 27)

patTemplate_Module
   |
   --patTemplate_TemplateCache
      |
      --patTemplate_TemplateCache_File
Method Summary
array|boolean load (string $key, [integer $modTime = -1])
boolean write (string $key, array $templates)
Variables

Inherited Variables

Inherited from patTemplate_Module

patTemplate_Module::$_name
Methods
load (line 50)

load template from cache

  • return: either an array containing the templates or false cache could not be loaded
  • access: public
array|boolean load (string $key, [integer $modTime = -1])
  • string $key: cache key
  • integer $modTime: modification time of original template

Redefinition of:
patTemplate_TemplateCache::load()
load template from cache
write (line 84)

write template to cache

  • return: true on success
  • access: public
boolean write (string $key, array $templates)
  • string $key: cache key
  • array $templates: templates to store

Redefinition of:
patTemplate_TemplateCache::write()
write template to cache

Inherited Methods

Inherited From patTemplate_TemplateCache

patTemplate_TemplateCache::getKey()
patTemplate_TemplateCache::load()
patTemplate_TemplateCache::write()

Inherited From patTemplate_Module

patTemplate_Module::getName()
patTemplate_Module::getParam()
patTemplate_Module::setParams()

Documentation generated on Fri, 4 Mar 2005 13:56:15 +1000 by phpDocumentor 1.3.0RC3