52 $this->parent->output->addHTML( $html );
57 "<div class=\"config-section\">\n" .
62 'action' => $this->parent->getUrl( [
'page' => $this->getName() ] )
72 public function endForm( $continue =
'continue', $back =
'back' ) {
73 $s =
"<div class=\"config-submit\">\n";
76 if ( $id ===
false ) {
77 $s .= Html::hidden(
'lastPage', $this->parent->request->getVal(
'lastPage' ) );
83 $s .= Html::submitButton(
86 'name' =>
"enter-$continue",
87 'style' =>
'width:0;border:0;height:0;padding:0'
94 $s .= Html::submitButton(
97 'name' =>
"submit-$back",
98 'tabindex' => $this->parent->nextTabIndex(),
99 'class' => [
'cdx-button',
'cdx-button--action-default' ]
106 $s .= Html::submitButton(
109 'name' =>
"submit-$continue",
110 'tabindex' => $this->parent->nextTabIndex(),
111 'class' => [
'cdx-button',
'cdx-button--action-progressive' ]
116 $s .=
"</div></form></div>\n";
124 return str_replace(
'MediaWiki\\Installer\\WebInstaller',
'', static::class );
131 return array_search( $this->
getName(), $this->parent->pageSequence );
140 public function getVar( $var, $default =
null ) {
141 return $this->parent->getVar( $var, $default );
148 public function setVar( $name, $value ) {
149 $this->parent->setVar( $name, $value );
160 return "\n<div class=\"cdx-card\"><div class=\"cdx-card__text\"><div class=\"cdx-card__text__title\">" .
161 wfMessage( $legend )->escaped() .
"</div><div class=\"cdx-card__text__description\">\n";
170 return "</div></div></div>\n";
178 '<div id="config-spinner" style="display:none;">' .
179 '<img src="images/ajax-loader.gif" /></div>' .
180 $this->
inlineScript(
'jQuery( "#config-spinner" ).show();' ) .
181 '<div id="config-live-log">' .
182 '<textarea name="LiveLog" rows="10" cols="30" readonly="readonly">'
184 $this->parent->output->flush();
192 '</textarea></div>' .
193 $this->
inlineScript(
'jQuery( "#config-spinner" ).hide()' )
195 $this->parent->output->flush();
206 return Html::inlineScript( $script, $this->parent->output->getCSPNonce() );
wfMessage( $key,... $params)
This is the function for getting translated interface messages.
Abstract class to define pages for the web installer.
getFieldsetStart( $legend)
Get the starting tags of a fieldset.
inlineScript( $script)
Javascript to include inline.
endForm( $continue='continue', $back='back')
getVar( $var, $default=null)
startLiveBox()
Opens a textarea used to display the progress of a long operation.
isSlow()
Is this a slow-running page in the installer? If so, WebInstaller will set_time_limit(0) before calli...
__construct(WebInstaller $parent)
getFieldsetEnd()
Get the end tag of a fieldset.
WebInstaller $parent
The WebInstaller object this WebInstallerPage belongs to.
endLiveBox()
Opposite to WebInstallerPage::startLiveBox.