66 $this->parent->output->addHTML( $html );
71 "<div class=\"config-section\">\n" .
76 'action' => $this->parent->getUrl( [
'page' => $this->getName() ] )
86 public function endForm( $continue =
'continue', $back =
'back' ) {
87 $s =
"<div class=\"config-submit\">\n";
90 if ( $id ===
false ) {
91 $s .= Html::hidden(
'lastPage', $this->parent->request->getVal(
'lastPage' ) );
97 $s .= Html::submitButton(
100 'name' =>
"enter-$continue",
101 'style' =>
'width:0;border:0;height:0;padding:0'
108 $s .= Html::submitButton(
111 'name' =>
"submit-$back",
112 'tabindex' => $this->parent->nextTabIndex(),
113 'class' => [
'cdx-button',
'cdx-button--action-default' ]
120 $s .= Html::submitButton(
123 'name' =>
"submit-$continue",
124 'tabindex' => $this->parent->nextTabIndex(),
125 'class' => [
'cdx-button',
'cdx-button--action-progressive' ]
130 $s .=
"</div></form></div>\n";
138 return str_replace(
'MediaWiki\\Installer\\WebInstaller',
'', static::class );
145 return array_search( $this->
getName(), $this->parent->pageSequence );
154 public function getVar( $var, $default =
null ) {
155 return $this->parent->getVar( $var, $default );
162 public function setVar( $name, $value ) {
163 $this->parent->setVar( $name, $value );
174 return "\n<div class=\"cdx-card\"><div class=\"cdx-card__text\"><div class=\"cdx-card__text__title\">" .
175 wfMessage( $legend )->escaped() .
"</div><div class=\"cdx-card__text__description\">\n";
184 return "</div></div></div>\n";
192 '<div id="config-spinner" style="display:none;">' .
193 '<img src="images/ajax-loader.gif" /></div>' .
194 '<script>jQuery( "#config-spinner" ).show();</script>' .
195 '<div id="config-live-log">' .
196 '<textarea name="LiveLog" rows="10" cols="30" readonly="readonly">'
198 $this->parent->output->flush();
205 $this->
addHTML(
'</textarea></div>
206<script>jQuery( "#config-spinner" ).hide()</script>' );
207 $this->parent->output->flush();
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.
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.