Support Joomla!

Joomla! 1.5 Documentation

Packages

Package: patTemplate

Developer Network License

The Joomla! Developer Network content is © copyright 2006 by the individual contributors and can be used in accordance with the Creative Commons License, Attribution- NonCommercial- ShareAlike 2.5
Source code for file /pattemplate/patTemplate/Stat/File.php

Documentation is available at File.php

  1. <?PHP
  2. /**
  3.  * Base class for patTemplate Stat
  4.  *
  5.  * $Id: File.php 47 2005-09-15 02:55:27Z rhuk $
  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 <[email protected]>
  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 47 2005-09-15 02:55:27Z rhuk $
  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 <[email protected]>
  31.  */
  32. {
  33.    /**
  34.     * get the modification time of a template
  35.     *
  36.     * Needed, if a template cache should be used, that auto-expires
  37.     * the cache.
  38.     *
  39.     * @abstract    must be implemented in the template readers
  40.     * @param    mixed    input to read from.
  41.     *                     This can be a string, a filename, a resource or whatever the derived class needs to read from
  42.     * @return    integer    unix timestamp
  43.     */
  44.     function getModificationTime$input )
  45.     {
  46.         $fullPath    =    $this->_options['root''/' $input;
  47.         return @filemtime$fullPath );
  48.     }
  49. }
  50. ?>

Documentation generated on Mon, 05 Mar 2007 20:58:43 +0000 by phpDocumentor 1.3.1