Source code for file /pattemplate/patTemplate/Function.php
Documentation is available at Function.php
* Base class for patTemplate functions
* $Id: Function.php 311 2004-10-27 13:52:20Z schst $
// Check to ensure this file is within the rest of the framework
* function is executed, when template is compiled (preg_match)
define('PATTEMPLATE_FUNCTION_COMPILE', 1);
* function is executed, when template parsed
define('PATTEMPLATE_FUNCTION_RUNTIME', 2);
* Base class for patTemplate functions
* $Id: Function.php 311 2004-10-27 13:52:20Z schst $
var $type =
PATTEMPLATE_FUNCTION_COMPILE;
* set the reference to the reader object
* @param object patTemplate_Reader
$this->_reader =
&$reader;
* @param array parameters of the function (= attributes of the tag)
* @param string content of the tag
* @return string content to insert into the template
function call( $params, $content )