| [ 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: File.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: File.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 */ 32 class patTemplate_Stat_File extends patTemplate_Stat 33 { 34 /** 35 * get the modification time of a template 36 * 37 * Needed, if a template cache should be used, that auto-expires 38 * the cache. 39 * 40 * @abstract must be implemented in the template readers 41 * @param mixed input to read from. 42 * This can be a string, a filename, a resource or whatever the derived class needs to read from 43 * @return integer unix timestamp 44 */ 45 function getModificationTime( $input ) 46 { 47 $fullPath = $this->_options['root'] . '/' . $input; 48 return @filemtime( $fullPath ); 49 } 50 } 51 ?>
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 |