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.php

Documentation is available at Stat.php

  1. <?PHP
  2. /**
  3.  * Base class for patTemplate Stat
  4.  *
  5.  * $Id: Stat.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: Stat.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.  * @abstract
  32.  */
  33. {
  34.    /**
  35.     * options, are identical to those of the corresponding reader
  36.     *
  37.     * @access    private
  38.     * @var        array 
  39.     */
  40.     var $_options array();
  41.  
  42.    /**
  43.     * get the modification time of a template
  44.     *
  45.     * Needed, if a template cache should be used, that auto-expires
  46.     * the cache.
  47.     *
  48.     * @abstract    must be implemented in the template readers
  49.     * @param    mixed    input to read from.
  50.     *                     This can be a string, a filename, a resource or whatever the derived class needs to read from
  51.     * @return    integer    unix timestamp
  52.     */
  53.     function getModificationTime$input )
  54.     {
  55.         return    -1;
  56.     }
  57.  
  58.    /**
  59.     * set options
  60.     *
  61.     * @access    public
  62.     * @param    array    array containing options
  63.     */
  64.     function setOptions$options )
  65.     {
  66.         $this->_options        =    $options;
  67.     }
  68. }
  69. ?>

Documentation generated on Mon, 05 Mar 2007 21:26:52 +0000 by phpDocumentor 1.3.1