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;
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();
wfDebug( $text, $dest='all', array $context=[])
Sends a line to the debug log if enabled or, optionally, to a comment in output.
wfMessage( $key,... $params)
This is the function for getting translated interface messages.
wfDeprecated( $function, $version=false, $component=false, $callerOffset=2)
Throws a warning that $function is deprecated.
Generic wrapper for template functions, with interface compatible with what we use of PHPTAL 0....
getSkin()
Get the Skin object related to this object.
__construct(Config $config=null)
getHTML()
Fetch the output of a QuickTemplate and return it.
msgWiki( $msgKey)
An ugly, ugly hack.
extend( $name, $value)
extends the value of data with name $name with the value $value
execute()
Main function, used by classes that subclass QuickTemplate to show the actual HTML output.
Interface for configuration instances.