Class patTemplate_Function

Description

Base class for patTemplate functions

$Id: Function.php,v 1.4 2004/10/27 13:52:20 schst Exp $

Located in /includes/patTemplate/patTemplate/Function.php (line 32)

patTemplate_Module
   |
   --patTemplate_Function
Direct descendents
Class Description
patTemplate_Function_Alias creates a new function alias
patTemplate_Function_Attribute patTemplate function to dynamically change the value of _any_ attribute of the parent tag.
patTemplate_Function_Call patTemplate function that enables you to insert any template, that has been loaded previously into the current template.
patTemplate_Function_Globalvar patTemplate function that enables adding global variables from within a template.
patTemplate_Function_Mambo
patTemplate_Function_Phphighlight patTemplate function that highlights PHP code in your templates
patTemplate_Function_Strip patTemplate function that strips whitespace from a text block. This is an implementation of Smarty's strip function.
patTemplate_Function_Time patTemplate function that calculates the current time or any other time and returns it in the specified format.
patTemplate_Function_Translate patTemplate function that emulates gettext's behaviour
Variable Summary
integer $type
Method Summary
string call (array $params, string $content)
Variables
integer $type = PATTEMPLATE_FUNCTION_COMPILE (line 48)

function type

  • access: public

Inherited Variables

Inherited from patTemplate_Module

patTemplate_Module::$_name
patTemplate_Module::$_params
Methods
call (line 70)

call the function

  • return: content to insert into the template
  • access: public
  • abstract:
string call (array $params, string $content)
  • array $params: parameters of the function (= attributes of the tag)
  • string $content: content of the tag

Redefined in descendants as:
setReader (line 56)

set the reference to the reader object

  • access: public
void setReader (object patTemplate_Reader &$reader)

Inherited Methods

Inherited From patTemplate_Module

patTemplate_Module::getName()
patTemplate_Module::getParam()
patTemplate_Module::setParams()

Documentation generated on Fri, 4 Mar 2005 13:56:16 +1000 by phpDocumentor 1.3.0RC3