Go to the documentation of this file.
43 wfDebug( __METHOD__ .
' was called with no Config instance passed to it' );
44 $config = MediaWikiServices::getInstance()->getMainConfig();
54 public function set( $name, $value ) {
55 $this->data[$name] = $value;
64 public function extend( $name, $value ) {
66 $this->data[$name] .= $value;
68 $this->data[$name] = $value;
80 public function get( $name, $default = null ) {
81 return $this->data[$name] ?? $default;
91 public function setRef( $name, &$value ) {
93 $this->data[$name] =& $value;
100 abstract public function execute();
108 echo htmlspecialchars( $this->data[$str] );
117 echo $this->data[$str];
138 echo
$wgOut->parseAsInterface( $text );
147 return isset( $this->data[$str] );
158 return $msg->exists() && !$msg->isDisabled();
167 return $this->data[
'skin'];
179 $html = ob_get_contents();
msgWiki( $msgKey)
An ugly, ugly hack.
wfMessage( $key,... $params)
This is the function for getting translated interface messages.
getSkin()
Get the Skin object related to this object.
getHTML()
Fetch the output of a QuickTemplate and return it.
Interface for configuration instances.
wfDeprecated( $function, $version=false, $component=false, $callerOffset=2)
Throws a warning that $function is deprecated.
wfDebug( $text, $dest='all', array $context=[])
Sends a line to the debug log if enabled or, optionally, to a comment in output.
execute()
Main function, used by classes that subclass QuickTemplate to show the actual HTML output.
__construct(Config $config=null)
extend( $name, $value)
extends the value of data with name $name with the value $value
Generic wrapper for template functions, with interface compatible with what we use of PHPTAL 0....