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

Abstract Class patTemplate_Function

Description

Base class for patTemplate functions

$Id: Function.php 311 2004-10-27 13:52:20Z schst $

Located in /pattemplate/patTemplate/Function.php (line 35)

Abstract class patTemplate_Module

Abstract class patTemplate_Function   (Subpackage Functions)
Direct descendents
Class Description
ClasspatTemplate_Function_Sef JTemplate SEF function
ClasspatTemplate_Function_Translate JTemplate Translate function
ClasspatTemplate_Function_Img patTemplate function that returns a complete imagetag and width and height are extracted from the image
ClasspatTemplate_Function_Call patTemplate function that enables you to insert any template, that has been loaded previously into the current template.
ClasspatTemplate_Function_Attribute patTemplate function to dynamically change the value of _any_ attribute of the parent tag.
ClasspatTemplate_Function_Highlight patTemplate function that highlights PHP code in your templates
ClasspatTemplate_Function_Time patTemplate function that calculates the current time or any other time and returns it in the specified format.
ClasspatTemplate_Function_Alias creates a new function alias
ClasspatTemplate_Function_Globalvar patTemplate function that enables adding global variables from within a template.
ClasspatTemplate_Function_Strip patTemplate function that strips whitespace from a text block. This is an implementation of Smarty's strip function.
ClasspatTemplate_Function_Phphighlight patTemplate function that highlights PHP code in your templates
Variable Summary
Variable integer $type
Method Summary
Abstract method string call (array $params, string $content)
Variables
integer $type = PATTEMPLATE_FUNCTION_COMPILE (line 51)

function type

  • access: public

Inherited Variables

Inherited from patTemplate_Module

Variable patTemplate_Module::$_name
Variable patTemplate_Module::$_params
Methods
call (line 73)

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 59)

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 Mon, 05 Mar 2007 21:02:16 +0000 by phpDocumentor 1.3.1