MediaWiki
1.28.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) | |
Protected Attributes | |
$config | |
Generic wrapper for template functions, with interface compatible with what we use of PHPTAL 0.7.
Definition at line 26 of file QuickTemplate.php.
QuickTemplate::__construct | ( | Config | $config = null | ) |
Config | $config |
Definition at line 34 of file QuickTemplate.php.
References $config, data, ConfigFactory\getDefaultInstance(), and wfDebug().
|
abstract |
Main function, used by classes that subclass QuickTemplate to show the actual HTML output.
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 59 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 74 of file QuickTemplate.php.
QuickTemplate::getHTML | ( | ) |
Fetch the output of a QuickTemplate and return it.
Definition at line 182 of file QuickTemplate.php.
QuickTemplate::getSkin | ( | ) |
Get the Skin object related to this object.
Definition at line 172 of file QuickTemplate.php.
References data.
Referenced by BaseTemplate\getMsg(), and BaseTemplate\printTrail().
QuickTemplate::haveData | ( | $str | ) |
string | $str |
Definition at line 152 of file QuickTemplate.php.
References data.
Referenced by extend(), and FakeAuthTemplate\getExtraInputDefinitions().
QuickTemplate::haveMsg | ( | $str | ) |
QuickTemplate::html | ( | $str | ) |
string | $str |
Definition at line 115 of file QuickTemplate.php.
References data.
Referenced by SkinApiTemplate\execute(), SkinFallbackTemplate\execute(), and BaseTemplate\printTrail().
QuickTemplate::msg | ( | $str | ) |
QuickTemplate::msgHtml | ( | $str | ) |
QuickTemplate::msgWiki | ( | $str | ) |
An ugly, ugly hack.
string | $str |
Definition at line 140 of file QuickTemplate.php.
QuickTemplate::set | ( | $name, | |
$value | |||
) |
Sets the value $value to $name.
string | $name | |
mixed | $value |
Definition at line 49 of file QuickTemplate.php.
QuickTemplate::setRef | ( | $name, | |
& | $value | ||
) |
string | $name | |
mixed | $value |
Definition at line 86 of file QuickTemplate.php.
QuickTemplate::setTranslator | ( | & | $t | ) |
QuickTemplate::text | ( | $str | ) |
string | $str |
Definition at line 107 of file QuickTemplate.php.
References data.
|
protected |
Definition at line 29 of file QuickTemplate.php.
Referenced by __construct().