Support Joomla!

Joomla! 1.5 Documentation

Packages

Package: patTemplate

Developer Network License

The Joomla! Developer Network content is © copyright 2006 by the individual contributors and can be used in accordance with the Creative Commons License, Attribution- NonCommercial- ShareAlike 2.5

 Class patTemplate_TemplateCache_File

Description

patTemplate Template cache that stores data on filesystem

$Id: File.php 47 2005-09-15 02:55:27Z rhuk $

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 /pattemplate/patTemplate/TemplateCache/File.php (line 30)

Abstract class patTemplate_Module

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

Inherited Variables

Inherited from patTemplate_Module

Variable patTemplate_Module::$_name
Methods
load (line 54)

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 89)

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 Mon, 05 Mar 2007 20:58:39 +0000 by phpDocumentor 1.3.1