BlueSpice MediaWiki REL1_27
 All Classes Namespaces Files Functions Variables Groups Pages
QuickTemplate Class Reference
Inheritance diagram for QuickTemplate:

Public Member Functions

 __construct (Config $config=null)
 
 set ($name, $value)
 
 extend ($name, $value)
 
 get ($name, $default=null)
 
 setRef ($name, &$value)
 
 setTranslator (&$t)
 
 execute ()
 
 getSkin ()
 
 getHTML ()
 

Protected Attributes

 $config
 

Detailed Description

Generic wrapper for template functions, with interface compatible with what we use of PHPTAL 0.7.

Constructor & Destructor Documentation

QuickTemplate::__construct ( Config  $config = null)
Parameters
Config$config

Member Function Documentation

QuickTemplate::execute ( )
abstract

Main function, used by classes that subclass QuickTemplate to show the actual HTML output

QuickTemplate::extend (   $name,
  $value 
)

extends the value of data with name $name with the value $value

Since
1.25
Parameters
string$name
mixed$value
QuickTemplate::get (   $name,
  $default = null 
)

Gets the template data requested

Since
1.22
Parameters
string$nameKey for the data
mixed$defaultOptional default (or null)
Returns
mixed The value of the data requested or the deafult
QuickTemplate::getHTML ( )

Fetch the output of a QuickTemplate and return it

Since
1.23
Returns
string
QuickTemplate::getSkin ( )

Get the Skin object related to this object

Returns
Skin
QuickTemplate::set (   $name,
  $value 
)

Sets the value $value to $name

Parameters
string$name
mixed$value
QuickTemplate::setRef (   $name,
$value 
)
Parameters
string$name
mixed$value
QuickTemplate::setTranslator ( $t)
Parameters
MediaWikiI18N$t

The documentation for this class was generated from the following file: