67 $this->parent->output->addHTML( $html );
72 "<div class=\"config-section\">\n" .
77 'action' => $this->parent->getUrl( [
'page' => $this->getName() ] )
87 public function endForm( $continue =
'continue', $back =
'back' ) {
88 $s =
"<div class=\"config-submit\">\n";
91 if ( $id ===
false ) {
92 $s .= Html::hidden(
'lastPage', $this->parent->request->getVal(
'lastPage' ) );
101 'name' =>
"enter-$continue",
102 'style' =>
'width:0;border:0;height:0;padding:0'
112 'name' =>
"submit-$back",
113 'tabindex' => $this->parent->nextTabIndex(),
114 'class' =>
'cdx-button cdx-button--action-default'
124 'name' =>
"submit-$continue",
125 'tabindex' => $this->parent->nextTabIndex(),
126 'class' =>
'cdx-button cdx-button--action-progressive'
131 $s .=
"</div></form></div>\n";
139 return str_replace(
'MediaWiki\\Installer\\WebInstaller',
'', static::class );
146 return array_search( $this->
getName(), $this->parent->pageSequence );
155 public function getVar( $var, $default =
null ) {
156 return $this->parent->getVar( $var, $default );
163 public function setVar( $name, $value ) {
164 $this->parent->setVar( $name, $value );
175 return "\n<div class=\"cdx-card\"><div class=\"cdx-card__text\"><div class=\"cdx-card__text__title\">" .
176 wfMessage( $legend )->escaped() .
"</div><div class=\"cdx-card__text__description\">\n";
185 return "</div></div></div>\n";
193 '<div id="config-spinner" style="display:none;">' .
194 '<img src="images/ajax-loader.gif" /></div>' .
195 '<script>jQuery( "#config-spinner" ).show();</script>' .
196 '<div id="config-live-log">' .
197 '<textarea name="LiveLog" rows="10" cols="30" readonly="readonly">'
199 $this->parent->output->flush();
206 $this->
addHTML(
'</textarea></div>
207<script>jQuery( "#config-spinner" ).hide()</script>' );
208 $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.