[ Index ]

PHP Cross Reference of Joomla 1.5.26 DE

title

Body

[close]

/libraries/pattemplate/patTemplate/ -> Function.php (source)

   1  <?PHP
   2  /**
   3   * Base class for patTemplate functions
   4   *
   5   * $Id: Function.php 10381 2008-06-01 03:35:53Z pasamio $
   6   *
   7   * @package        patTemplate
   8   * @subpackage    Functions
   9   * @author        Stephan Schmidt <schst@php.net>
  10   */
  11  
  12  // Check to ensure this file is within the rest of the framework
  13  defined('JPATH_BASE') or die();
  14  
  15  /**
  16   * function is executed, when template is compiled (preg_match)
  17   */
  18  define('PATTEMPLATE_FUNCTION_COMPILE', 1);
  19  
  20  /**
  21   * function is executed, when template parsed
  22   */
  23  define('PATTEMPLATE_FUNCTION_RUNTIME', 2);
  24  
  25  /**
  26   * Base class for patTemplate functions
  27   *
  28   * $Id: Function.php 10381 2008-06-01 03:35:53Z pasamio $
  29   *
  30   * @abstract
  31   * @package        patTemplate
  32   * @subpackage    Functions
  33   * @author        Stephan Schmidt <schst@php.net>
  34   */
  35  class patTemplate_Function extends patTemplate_Module
  36  {
  37      /**
  38      * reader object
  39      *
  40      * @access private
  41      * @var      object
  42      */
  43      var $_reader;
  44  
  45      /**
  46      * function type
  47      *
  48      * @access public
  49      * @var      integer
  50      */
  51      var $type = PATTEMPLATE_FUNCTION_COMPILE;
  52  
  53      /**
  54      * set the reference to the reader object
  55      *
  56      * @access    public
  57      * @param    object patTemplate_Reader
  58      */
  59  	function setReader( &$reader )
  60      {
  61          $this->_reader = &$reader;
  62      }
  63  
  64      /**
  65      * call the function
  66      *
  67      * @abstract
  68      * @access    public
  69      * @param    array    parameters of the function (= attributes of the tag)
  70      * @param    string    content of the tag
  71      * @return    string    content to insert into the template
  72      */
  73  	function call( $params, $content )
  74      {
  75      }
  76  }
  77  ?>


Generated: Wed Mar 28 15:54:07 2012 Cross-referenced by PHPXref 0.7.1