MediaWiki  1.23.2
QuickTemplate Class Reference

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

Inheritance diagram for QuickTemplate:

Public Member Functions

 __construct ()
 Constructor. More...
 
 execute ()
 Main function, used by classes that subclass QuickTemplate to show the actual HTML output. More...
 
 get ( $name, $default=null)
 Gets the template data requested. More...
 
 getHTML ()
 Fetch the output of a QuickTemplate and return it. More...
 
 getSkin ()
 Get the Skin object related to this object. More...
 
 haveData ( $str)
 
 haveMsg ( $str)
 
 html ( $str)
 
 msg ( $str)
 
 msgHtml ( $str)
 
 msgWiki ( $str)
 An ugly, ugly hack. More...
 
 set ( $name, $value)
 Sets the value $value to $name. More...
 
 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 1372 of file SkinTemplate.php.

Constructor & Destructor Documentation

◆ __construct()

QuickTemplate::__construct ( )

Constructor.

Definition at line 1376 of file SkinTemplate.php.

References array(), and data.

Member Function Documentation

◆ execute()

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.

Referenced by getHTML().

◆ get()

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 1397 of file SkinTemplate.php.

References $name, and data.

◆ getHTML()

QuickTemplate::getHTML ( )

Fetch the output of a QuickTemplate and return it.

Since
1.23
Returns
String

Definition at line 1498 of file SkinTemplate.php.

References $html, and execute().

◆ getSkin()

◆ haveData()

QuickTemplate::haveData (   $str)
Access:\n private
Returns
bool

Definition at line 1469 of file SkinTemplate.php.

References data.

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

◆ haveMsg()

QuickTemplate::haveMsg (   $str)
Access:\n private
Returns
bool

Definition at line 1478 of file SkinTemplate.php.

◆ html()

QuickTemplate::html (   $str)

◆ msg()

QuickTemplate::msg (   $str)
Access:\n private

Reimplemented in BaseTemplate.

Definition at line 1443 of file SkinTemplate.php.

◆ msgHtml()

QuickTemplate::msgHtml (   $str)
Access:\n private

Reimplemented in BaseTemplate.

Definition at line 1450 of file SkinTemplate.php.

◆ msgWiki()

QuickTemplate::msgWiki (   $str)

An ugly, ugly hack.

Access:\n private

Reimplemented in BaseTemplate.

Definition at line 1458 of file SkinTemplate.php.

References $wgOut, and global.

◆ set()

QuickTemplate::set (   $name,
  $value 
)

Sets the value $value to $name.

Parameters
$name
$value

Definition at line 1386 of file SkinTemplate.php.

References $name, $value, and data.

◆ setRef()

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

Definition at line 1409 of file SkinTemplate.php.

References $name, $value, and data.

◆ setTranslator()

QuickTemplate::setTranslator ( $t)
Parameters
$t

Definition at line 1416 of file SkinTemplate.php.

References $t.

◆ text()

QuickTemplate::text (   $str)

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