Source code for file /pattemplate/patTemplate/TemplateCache.php
Documentation is available at TemplateCache.php
* Base class for patTemplate template cache
* $Id: TemplateCache.php 219 2004-05-25 20:38:38Z schst $
* A template cache is used to cache the data after
* the template has been read, but before the variables
* Data is normally stored in serialized format. This
* will increase performance.
* This is not related to an output cache!
// Check to ensure this file is within the rest of the framework
* Base class for patTemplate template cache
* $Id: TemplateCache.php 219 2004-05-25 20:38:38Z schst $
* A template cache is used to cache the data after
* the template has been read, but before the variables
* Data is normally stored in serialized format. This
* will increase performance.
* This is not related to an output cache!
* load template from cache
* @param string cache key
* @param integer modification time of original template
* @return array|boolean either an array containing the templates or false cache could not be loaded
function load( $key, $modTime = -
1 )
* write template to cache
* @param string cache key
* @param array templates to store
function write( $key, $templates )
* get the cache key for the input
* @param mixed input to read from.
* This can be a string, a filename, a resource or whatever the derived class needs to read from
function getKey( $input, $options =
array() )