Class patTemplate_Stat

Description

Base class for patTemplate Stat

$Id: Stat.php,v 1.1 2004/05/17 18:40:54 schst Exp $

A stat component should be implemented for each reader to support caching. Stats return information about the template source.

Located in /includes/patTemplate/patTemplate/Stat.php (line 30)

patTemplate_Module
   |
   --patTemplate_Stat
Direct descendents
Class Description
patTemplate_Stat_File Base class for patTemplate Stat
Method Summary
integer getModificationTime (mixed $input)
void setOptions (array $options)
Variables
Methods
getModificationTime (line 51)

get the modification time of a template

Needed, if a template cache should be used, that auto-expires the cache.

  • return: unix timestamp
  • abstract: must be implemented in the template readers
integer getModificationTime (mixed $input)
  • mixed $input: input to read from. This can be a string, a filename, a resource or whatever the derived class needs to read from

Redefined in descendants as:
setOptions (line 62)

set options

  • access: public
void setOptions (array $options)
  • array $options: array containing options

Inherited Methods

Inherited From patTemplate_Module

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

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