[ Index ]

PHP Cross Reference of Joomla 1.5.26 DE

title

Body

[close]

/libraries/pattemplate/patTemplate/TemplateCache/ -> File.php (summary)

patTemplate Template cache that stores data on filesystem $Id: File.php 10381 2008-06-01 03:35:53Z pasamio $

Author: Stephan Schmidt <schst@php.net>
File Size: 118 lines (3 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 1 class

patTemplate_TemplateCache_File:: (3 methods):
  load()
  write()
  _getCachefileName()


Class: patTemplate_TemplateCache_File  - X-Ref

patTemplate Template cache that stores data on filesystem

$Id: File.php 10381 2008-06-01 03:35:53Z pasamio $

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

load($key, $modTime = -1)   X-Ref
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

write( $key, $templates )   X-Ref
write template to cache

param: string        cache key
param: array        templates to store
return: boolean        true on success

_getCachefileName( $key )   X-Ref
get the cache filename

param: string        cache key
return: string        cache file name



Generated: Wed Mar 28 15:54:07 2012 Cross-referenced by PHPXref 0.7.1