CoreFiles by mySites.guru
File.php51 lines, 1,376 bytes, from Joomla_1.5.3-Stable-Full_Package.zip
Raw History Compare with 1.5.2
md5
9f77f8f4640656af28543cce68db4293
sha1
0d395bbbcce3228b9a1245511908b4e33308a7cc
sha256
23e193b9c7934644cf0c641d02a621c34b842760aebd1ca4779c389a91b1131e
<?PHP
/**
 * Base class for patTemplate Stat
 *
 * $Id: File.php 8287 2007-08-01 08:38:59Z eddieajau $
 *
 * A stat component should be implemented for each reader
 * to support caching. Stats return information about the
 * template source.
 *
 * @package		patTemplate
 * @subpackage	Stat
 * @author		Stephan Schmidt <[email protected]>
 */

// Check to ensure this file is within the rest of the framework
defined('JPATH_BASE') or die();

/**
 * Base class for patTemplate Stat
 *
 * $Id: File.php 8287 2007-08-01 08:38:59Z eddieajau $
 *
 * A stat component should be implemented for each reader
 * to support caching. Stats return information about the
 * template source.
 *
 * @package		patTemplate
 * @subpackage	Stat
 * @author		Stephan Schmidt <[email protected]>
 */
class patTemplate_Stat_File extends patTemplate_Stat
{
	/**
	* get the modification time of a template
	*
	* Needed, if a template cache should be used, that auto-expires
	* the cache.
	*
	* @abstract	must be implemented in the template readers
	* @param	mixed	input to read from.
	*					This can be a string, a filename, a resource or whatever the derived class needs to read from
	* @return	integer	unix timestamp
	*/
	function getModificationTime( $input )
	{
		$fullPath	=	$this->_options['root'] . '/' . $input;
		return @filemtime( $fullPath );
	}
}
?>

The same content is in 4 releases, Joomla 1.5.0 to 1.5.3. See them all, or every version of this file.