49 wfDebug( __METHOD__ .
' was called with no Config instance passed to it' );
50 $config = MediaWikiServices::getInstance()->getMainConfig();
85 public function get(
$name, $default = null ) {
86 if ( isset( $this->data[$name] ) ) {
87 return $this->data[
$name];
105 $this->translator = &
$t;
119 echo htmlspecialchars( $this->data[$str] );
127 echo $this->data[$str];
135 echo htmlspecialchars( $this->translator->translate( $str ) );
143 echo $this->translator->translate( $str );
154 $text = $this->translator->translate( $str );
155 echo
$wgOut->parse( $text );
164 return isset( $this->data[$str] );
174 $msg = $this->translator->translate( $str );
175 return ( $msg !=
'-' ) && ( $msg !=
'' ); # ????
184 return $this->data[
'skin'];
196 $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.
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.
extend( $name, $value)
extends the value of data with name $name with the value $value
msgWiki( $str)
An ugly, ugly hack.
execute()
Main function, used by classes that subclass QuickTemplate to show the actual HTML output.
MediaWikiI18N $translator
null means default in associative array with keys and values unescaped Should be merged with default with a value of false meaning to suppress the attribute in associative array with keys and values unescaped noclasses just before the function returns a value If you return an< a > element with HTML attributes $attribs and contents $html will be returned If you return $ret will be returned and may include noclasses & $html
Allows to change the fields on the form that will be generated $name