| [ Index ] |
PHP Cross Reference of Joomla 1.5.26 DE |
[Summary view] [Print] [Text view]
1 <?PHP 2 /** 3 * Base class for patTemplate Stat 4 * 5 * $Id: Stat.php 10381 2008-06-01 03:35:53Z pasamio $ 6 * 7 * A stat component should be implemented for each reader 8 * to support caching. Stats return information about the 9 * template source. 10 * 11 * @package patTemplate 12 * @subpackage Stat 13 * @author Stephan Schmidt <schst@php.net> 14 */ 15 16 // Check to ensure this file is within the rest of the framework 17 defined('JPATH_BASE') or die(); 18 19 /** 20 * Base class for patTemplate Stat 21 * 22 * $Id: Stat.php 10381 2008-06-01 03:35:53Z pasamio $ 23 * 24 * A stat component should be implemented for each reader 25 * to support caching. Stats return information about the 26 * template source. 27 * 28 * @package patTemplate 29 * @subpackage Stat 30 * @author Stephan Schmidt <schst@php.net> 31 * @abstract 32 */ 33 class patTemplate_Stat extends patTemplate_Module 34 { 35 /** 36 * options, are identical to those of the corresponding reader 37 * 38 * @access private 39 * @var array 40 */ 41 var $_options = array(); 42 43 /** 44 * get the modification time of a template 45 * 46 * Needed, if a template cache should be used, that auto-expires 47 * the cache. 48 * 49 * @abstract must be implemented in the template readers 50 * @param mixed input to read from. 51 * This can be a string, a filename, a resource or whatever the derived class needs to read from 52 * @return integer unix timestamp 53 */ 54 function getModificationTime( $input ) 55 { 56 return -1; 57 } 58 59 /** 60 * set options 61 * 62 * @access public 63 * @param array array containing options 64 */ 65 function setOptions( $options ) 66 { 67 $this->_options = $options; 68 } 69 } 70 ?>
title
Description
Body
title
Description
Body
title
Description
Body
title
Body
| Generated: Wed Mar 28 15:54:07 2012 | Cross-referenced by PHPXref 0.7.1 |