21use MediaWiki\HookContainer\ProtectedHookAccessorTrait;
61 use ProtectedHookAccessorTrait;
77 wfDebug( __METHOD__ .
' was called with no Config instance passed to it' );
78 $config = MediaWikiServices::getInstance()->getMainConfig();
88 public function set( $name, $value ) {
89 $this->data[$name] = $value;
98 public function extend( $name, $value ) {
100 $this->data[$name] .= $value;
102 $this->data[$name] = $value;
114 public function get( $name, $default = null ) {
115 return $this->data[$name] ?? $default;
128 protected function text( $str ) {
129 echo htmlspecialchars( $this->data[$str] );
137 echo $this->data[$str];
143 public function msg( $msgKey ) {
152 return isset( $this->data[$str] );
161 return $msg->exists() && !$msg->isDisabled();
170 return $this->data[
'skin'];
182 $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.
PHP-based skin template that holds data.
getSkin()
Get the Skin object related to this object.
__construct(Config $config=null)
getHTML()
Fetch the output of a QuickTemplate and return it.
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.