MediaWiki REL1_35
|
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. | |
html ( $str) | |
msg ( $msgKey) | |
set ( $name, $value) | |
Sets the value $value to $name. | |
Public Attributes | |
array | $data |
Protected Member Functions | |
haveMsg ( $msgKey) | |
text ( $str) | |
Protected Attributes | |
Config | $config |
Private Member Functions | |
haveData ( $str) | |
Generic wrapper for template functions, with interface compatible with what we use of PHPTAL 0.7.
Stable to extend
Definition at line 30 of file QuickTemplate.php.
QuickTemplate::__construct | ( | Config | $config = null | ) |
Config | null | $config |
Definition at line 44 of file QuickTemplate.php.
References 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 68 of file QuickTemplate.php.
References haveData().
QuickTemplate::get | ( | $name, | |
$default = null |
|||
) |
Gets the template data requested.
string | $name | Key for the data |
mixed | null | $default | Optional default (or null) |
Definition at line 84 of file QuickTemplate.php.
QuickTemplate::getHTML | ( | ) |
Fetch the output of a QuickTemplate and return it.
Definition at line 149 of file QuickTemplate.php.
References execute().
QuickTemplate::getSkin | ( | ) |
Get the Skin object related to this object.
Definition at line 139 of file QuickTemplate.php.
Referenced by BaseTemplate\getAfterPortlet(), BaseTemplate\getFooter(), BaseTemplate\getMsg(), BaseTemplate\getPersonalTools(), BaseTemplate\getSidebar(), BaseTemplate\getToolbox(), BaseTemplate\getTrail(), BaseTemplate\makeLink(), BaseTemplate\makeListItem(), BaseTemplate\makeSearchButton(), and BaseTemplate\makeSearchInput().
|
private |
string | $str |
Definition at line 121 of file QuickTemplate.php.
Referenced by extend().
|
protected |
string | $msgKey |
Definition at line 129 of file QuickTemplate.php.
References wfMessage().
QuickTemplate::html | ( | $str | ) |
string | $str | SecurityCheck-XSS phan-taint-check cannot tell if $str is pre-escaped |
Definition at line 106 of file QuickTemplate.php.
QuickTemplate::msg | ( | $msgKey | ) |
string | $msgKey |
Reimplemented in BaseTemplate.
Definition at line 113 of file QuickTemplate.php.
References text(), and wfMessage().
QuickTemplate::set | ( | $name, | |
$value | |||
) |
Sets the value $value to $name.
string | $name | |
mixed | $value |
Definition at line 58 of file QuickTemplate.php.
|
protected |
string | $str | SecurityCheck-DoubleEscaped $this->data can be either |
Definition at line 98 of file QuickTemplate.php.
Referenced by msg().
|
protected |
Definition at line 39 of file QuickTemplate.php.
array QuickTemplate::$data |
Definition at line 36 of file QuickTemplate.php.