MediaWiki  REL1_22
QuickTemplate Class Reference

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

Inheritance diagram for QuickTemplate:

List of all members.

Public Member Functions

 __construct ()
 Constructor.
 execute ()
 Main function, used by classes that subclass QuickTemplate to show the actual HTML output.
 get ($name, $default=null)
 Gets the template data requested.
 getSkin ()
 Get the Skin object related to this object.
 haveData ($str)
 haveMsg ($str)
 html ($str)
 jstext ($str)
 msg ($str)
 msgHtml ($str)
 msgWiki ($str)
 An ugly, ugly hack.
 set ($name, $value)
 Sets the value $value to $name.
 setRef ($name, &$value)
 setTranslator (&$t)
 text ($str)

Detailed Description

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

Definition at line 1313 of file SkinTemplate.php.


Constructor & Destructor Documentation

Constructor.

Definition at line 1317 of file SkinTemplate.php.

References array(), and data.


Member Function Documentation

QuickTemplate::execute ( ) [abstract]

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

Reimplemented in VectorTemplate, MonoBookTemplate, ModernTemplate, CologneBlueTemplate, UsercreateTemplate, and UserloginTemplate.

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

Definition at line 1338 of file SkinTemplate.php.

References $name, and data.

Access:
private
Returns:
bool

Definition at line 1419 of file SkinTemplate.php.

References data.

Referenced by UserloginTemplate\execute(), and UsercreateTemplate\execute().

Access:
private
Returns:
bool

Definition at line 1428 of file SkinTemplate.php.

Access:
private
Deprecated:
since 1.21; use Xml::encodeJsVar() or Xml::encodeJsCall() instead

Definition at line 1378 of file SkinTemplate.php.

References data, Xml\escapeJsString(), and wfDeprecated().

QuickTemplate::msg ( str)
Access:
private

Reimplemented in BaseTemplate.

Definition at line 1393 of file SkinTemplate.php.

Access:
private

Reimplemented in BaseTemplate.

Definition at line 1400 of file SkinTemplate.php.

An ugly, ugly hack.

Access:
private

Reimplemented in BaseTemplate.

Definition at line 1408 of file SkinTemplate.php.

References $wgOut, and global.

QuickTemplate::set ( name,
value 
)

Sets the value $value to $name.

Parameters:
$name
$value

Definition at line 1327 of file SkinTemplate.php.

References $name, $value, and data.

QuickTemplate::setRef ( name,
&$  value 
)
Parameters:
$name
$value

Definition at line 1350 of file SkinTemplate.php.

References $name, $value, and data.

Parameters:
$t

Definition at line 1357 of file SkinTemplate.php.

References $t.


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