70 $this->parent->output->addHTML( $html );
75 "<div class=\"config-section\">\n" .
80 'action' => $this->parent->getUrl( [
'page' => $this->getName() ] )
90 public function endForm( $continue =
'continue', $back =
'back' ) {
91 $s =
"<div class=\"config-submit\">\n";
94 if ( $id ===
false ) {
95 $s .= Html::hidden(
'lastPage', $this->parent->request->getVal(
'lastPage' ) );
104 'name' =>
"enter-$continue",
105 'style' =>
'width:0;border:0;height:0;padding:0'
115 'name' =>
"submit-$back",
116 'tabindex' => $this->parent->nextTabIndex(),
117 'class' =>
'cdx-button cdx-button--action-destructive'
127 'name' =>
"submit-$continue",
128 'tabindex' => $this->parent->nextTabIndex(),
129 'class' =>
'cdx-button cdx-button--action-progressive'
134 $s .=
"</div></form></div>\n";
142 return str_replace(
'MediaWiki\\Installer\\WebInstaller',
'', static::class );
149 return array_search( $this->
getName(), $this->parent->pageSequence );
158 public function getVar( $var, $default =
null ) {
159 return $this->parent->getVar( $var, $default );
166 public function setVar( $name, $value ) {
167 $this->parent->setVar( $name, $value );
178 return "\n<span class=\"cdx-card\"><span class=\"cdx-card__text\"><span class=\"cdx-card__text__title\">" .
179 wfMessage( $legend )->escaped() .
"</span><span class=\"cdx-card__text__description\">\n";
188 return "</span></span></span>\n";
196 '<div id="config-spinner" style="display:none;">' .
197 '<img src="images/ajax-loader.gif" /></div>' .
198 '<script>jQuery( "#config-spinner" ).show();</script>' .
199 '<div id="config-live-log">' .
200 '<textarea name="LiveLog" rows="10" cols="30" readonly="readonly">'
202 $this->parent->output->flush();
209 $this->
addHTML(
'</textarea></div>
210<script>jQuery( "#config-spinner" ).hide()</script>' );
211 $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.