MediaWiki
1.30.0
|
Generic wrapper for template functions, with interface compatible with what we use of PHPTAL 0.7. More...
Public Member Functions | |
__construct (Config $config=null) | |
execute () | |
Main function, used by classes that subclass QuickTemplate to show the actual HTML output. More... | |
extend ( $name, $value) | |
extends the value of data with name $name with the value $value 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) | |
Public Attributes | |
array | $data |
MediaWikiI18N | $translator |
Protected Attributes | |
$config | |
Generic wrapper for template functions, with interface compatible with what we use of PHPTAL 0.7.
Definition at line 27 of file QuickTemplate.php.
QuickTemplate::__construct | ( | Config | $config = null | ) |
|
abstract |
Main function, used by classes that subclass QuickTemplate to show the actual HTML output.
Reimplemented in FakeAuthTemplate, SkinFallbackTemplate, ModernTemplate, CologneBlueTemplate, MonoBookTemplate, SkinApiTemplate, and VectorTemplate.
Referenced by getHTML().
QuickTemplate::extend | ( | $name, | |
$value | |||
) |
extends the value of data with name $name with the value $value
string | $name | |
mixed | $value |
Definition at line 70 of file QuickTemplate.php.
References $name, $value, data, and haveData().
QuickTemplate::get | ( | $name, | |
$default = null |
|||
) |
Gets the template data requested.
string | $name | Key for the data |
mixed | $default | Optional default (or null) |
Definition at line 85 of file QuickTemplate.php.
QuickTemplate::getHTML | ( | ) |
Fetch the output of a QuickTemplate and return it.
Definition at line 193 of file QuickTemplate.php.
QuickTemplate::getSkin | ( | ) |
Get the Skin object related to this object.
Definition at line 183 of file QuickTemplate.php.
References data.
Referenced by CologneBlueTemplate\afterContent(), CologneBlueTemplate\beforeContent(), CologneBlueTemplate\bottomLinks(), VectorTemplate\execute(), ModernTemplate\execute(), BaseTemplate\getFooter(), BaseTemplate\getMsg(), BaseTemplate\getTrail(), CologneBlueTemplate\otherLanguages(), CologneBlueTemplate\pageTitleLinks(), CologneBlueTemplate\searchForm(), CologneBlueTemplate\sysLinks(), CologneBlueTemplate\talkLink(), and CologneBlueTemplate\variantLinks().
QuickTemplate::haveData | ( | $str | ) |
string | $str |
Definition at line 163 of file QuickTemplate.php.
References data.
Referenced by extend(), and FakeAuthTemplate\getExtraInputDefinitions().
QuickTemplate::haveMsg | ( | $str | ) |
string | $str |
Definition at line 173 of file QuickTemplate.php.
QuickTemplate::html | ( | $str | ) |
string | $str |
Definition at line 126 of file QuickTemplate.php.
References data.
Referenced by SkinApiTemplate\execute(), CologneBlueTemplate\execute(), and SkinFallbackTemplate\execute().
QuickTemplate::msg | ( | $str | ) |
string | $str |
Reimplemented in BaseTemplate.
Definition at line 134 of file QuickTemplate.php.
QuickTemplate::msgHtml | ( | $str | ) |
string | $str |
Reimplemented in BaseTemplate.
Definition at line 142 of file QuickTemplate.php.
QuickTemplate::msgWiki | ( | $str | ) |
An ugly, ugly hack.
string | $str |
Reimplemented in BaseTemplate.
Definition at line 151 of file QuickTemplate.php.
QuickTemplate::set | ( | $name, | |
$value | |||
) |
Sets the value $value to $name.
string | $name | |
mixed | $value |
Definition at line 60 of file QuickTemplate.php.
QuickTemplate::setRef | ( | $name, | |
& | $value | ||
) |
string | $name | |
mixed | &$value |
Definition at line 97 of file QuickTemplate.php.
QuickTemplate::setTranslator | ( | & | $t | ) |
QuickTemplate::text | ( | $str | ) |
string | $str |
Definition at line 118 of file QuickTemplate.php.
References data.
Referenced by CologneBlueTemplate\sysLinks().
|
protected |
Definition at line 40 of file QuickTemplate.php.
Referenced by __construct().
array QuickTemplate::$data |
Definition at line 32 of file QuickTemplate.php.
Referenced by CologneBlueTemplate\otherLanguages(), and CologneBlueTemplate\quickBar().
MediaWikiI18N QuickTemplate::$translator |
Definition at line 37 of file QuickTemplate.php.