Go to the documentation of this file.
43 $field = parent::loadInputFromParameters( $fieldname, $descriptor, $parent );
44 $field->setShowEmptyLabel(
false );
48 public function getHTML( $submitResult ) {
55 'mediawiki.ui.button',
57 'mediawiki.ui.checkbox',
60 return parent::getHTML( $submitResult );
64 $attribs = parent::getFormAttributes();
65 $attribs[
'class'] = [
'mw-htmlform',
'mw-ui-vform',
'mw-ui-container' ];
77 if ( $this->mShowSubmit ) {
80 if ( isset( $this->mSubmitID ) ) {
84 if ( isset( $this->mSubmitName ) ) {
88 if ( isset( $this->mSubmitTooltip ) ) {
94 'mw-ui-button mw-ui-big mw-ui-block',
96 foreach ( $this->mSubmitFlags as $flag ) {
97 $attribs[
'class'][] =
'mw-ui-' . $flag;
103 if ( $this->mShowReset ) {
108 'value' => $this->
msg(
'htmlform-reset' )->text(),
109 'class' =>
'mw-ui-button mw-ui-big mw-ui-block',
114 if ( $this->mShowCancel ) {
116 if ( $target instanceof
Title ) {
117 $target = $target->getLocalURL();
122 'class' =>
'mw-ui-button mw-ui-big mw-ui-block',
125 $this->
msg(
'cancel' )->text()
129 foreach ( $this->mButtons as $button ) {
132 'name' => $button[
'name'],
133 'value' => $button[
'value']
136 if ( $button[
'attribs'] ) {
137 $attrs += $button[
'attribs'];
140 if ( isset( $button[
'id'] ) ) {
141 $attrs[
'id'] = $button[
'id'];
144 $attrs[
'class'] = isset( $attrs[
'class'] ) ? (array)$attrs[
'class'] : [];
145 $attrs[
'class'][] =
'mw-ui-button mw-ui-big mw-ui-block';
155 [
'class' =>
'mw-htmlform-submit-buttons' ],
"\n$buttons" ) .
"\n";
static newMainPage(MessageLocalizer $localizer=null)
Create a new Title for the Main Page.
static tooltipAndAccesskeyAttribs( $name, array $msgParams=[], $options=null)
Returns the attributes for the tooltip and access key.
msg( $key,... $params)
Get a Message object with context set Parameters are the same as wfMessage()
Represents a title within MediaWiki.
static rawElement( $element, $attribs=[], $contents='')
Returns an HTML element in a string.
static element( $element, $attribs=[], $contents='')
Identical to rawElement(), but HTML-escapes $contents (like Xml::element()).
static submitButton( $value, $attribs=[])
Convenience function to build an HTML submit button When $wgUseMediaWikiUIEverywhere is true it will ...