MediaWiki REL1_31
|
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. | |
extend ( $name, $value) | |
extends the value of data with name $name with the value $value | |
get ( $name, $default=null) | |
Gets the template data requested. | |
getHTML () | |
Fetch the output of a QuickTemplate and return it. | |
getSkin () | |
Get the Skin object related to this object. | |
haveData ( $str) | |
haveMsg ( $msgKey) | |
html ( $str) | |
msg ( $msgKey) | |
msgHtml ( $msgKey) | |
msgWiki ( $msgKey) | |
An ugly, ugly hack. | |
set ( $name, $value) | |
Sets the value $value to $name. | |
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 | ) |
Config | $config |
Definition at line 45 of file QuickTemplate.php.
|
abstract |
Main function, used by classes that subclass QuickTemplate to show the actual HTML output.
Reimplemented in SkinApiTemplate, SkinFallbackTemplate, FakeAuthTemplate, MonoBookTemplate, TimelessTemplate, 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, 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.
References $name.
QuickTemplate::getHTML | ( | ) |
Fetch the output of a QuickTemplate and return it.
Definition at line 200 of file QuickTemplate.php.
QuickTemplate::getSkin | ( | ) |
Get the Skin object related to this object.
Definition at line 190 of file QuickTemplate.php.
Referenced by MonoBookTemplate\execute(), TimelessTemplate\execute(), VectorTemplate\execute(), MonoBookTemplate\getBox(), TimelessTemplate\getCategories(), BaseTemplate\getFooter(), TimelessTemplate\getLogo(), BaseTemplate\getMsg(), TimelessTemplate\getPageTools(), MonoBookTemplate\getSimpleFooter(), BaseTemplate\getTrail(), TimelessTemplate\getUserLinks(), and VectorTemplate\renderNavigation().
QuickTemplate::haveData | ( | $str | ) |
string | $str |
Definition at line 170 of file QuickTemplate.php.
Referenced by extend(), and FakeAuthTemplate\getExtraInputDefinitions().
QuickTemplate::haveMsg | ( | $msgKey | ) |
string | $msgKey |
Definition at line 180 of file QuickTemplate.php.
References wfMessage().
QuickTemplate::html | ( | $str | ) |
string | $str |
Definition at line 133 of file QuickTemplate.php.
Referenced by SkinApiTemplate\execute(), SkinFallbackTemplate\execute(), VectorTemplate\execute(), VectorTemplate\renderNavigation(), and VectorTemplate\renderPortal().
QuickTemplate::msg | ( | $msgKey | ) |
string | $msgKey |
Reimplemented in BaseTemplate.
Definition at line 141 of file QuickTemplate.php.
References text, and wfMessage().
QuickTemplate::msgHtml | ( | $msgKey | ) |
string | $msgKey |
Reimplemented in BaseTemplate.
Definition at line 149 of file QuickTemplate.php.
References wfMessage().
QuickTemplate::msgWiki | ( | $msgKey | ) |
An ugly, ugly hack.
string | $msgKey |
Reimplemented in BaseTemplate.
Definition at line 158 of file QuickTemplate.php.
References $wgOut, and wfMessage().
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 100 of file QuickTemplate.php.
References $name, $value, and wfDeprecated().
QuickTemplate::setTranslator | ( | & | $t | ) |
MediaWikiI18N | &$t | @deprecate since 1.31 Use BaseTemplate::msg() or Skin::msg() instead for setting message parameters. |
Definition at line 110 of file QuickTemplate.php.
References $t, and wfDeprecated().
QuickTemplate::text | ( | $str | ) |
|
protected |
Definition at line 40 of file QuickTemplate.php.
Referenced by __construct().
array QuickTemplate::$data |
Definition at line 32 of file QuickTemplate.php.
MediaWikiI18N QuickTemplate::$translator |
Definition at line 37 of file QuickTemplate.php.