MediaWiki REL1_32
WebInstallerRestart.php
Go to the documentation of this file.
1<?php
23
27 public function execute() {
28 $r = $this->parent->request;
29 if ( $r->wasPosted() ) {
30 $really = $r->getVal( 'submit-restart' );
31 if ( $really ) {
32 $this->parent->reset();
33 }
34
35 return 'continue';
36 }
37
38 $this->startForm();
39 $s = $this->parent->getWarningBox( wfMessage( 'config-help-restart' )->plain() );
40 $this->addHTML( $s );
41 $this->endForm( 'restart' );
42
43 return null;
44 }
45
46}
Abstract class to define pages for the web installer.
endForm( $continue='continue', $back='back')
either a plain
Definition hooks.txt:2105
either a unescaped string or a HtmlArmor object after in associative array form externallinks including delete and has completed for all link tables whether this was an auto creation use $formDescriptor instead default is conds Array Extra conditions for the No matching items in log is displayed if loglist is empty msgKey Array If you want a nice box with a set this to the key of the message First element is the message additional optional elements are parameters for the key that are processed with wfMessage() -> params() ->parseAsBlock() - offset Set to overwrite offset parameter in $wgRequest set to '' to unset offset - wrap String Wrap the message in html(usually something like "&lt;div ...>$1&lt;/div>"). - flags Integer display flags(NO_ACTION_LINK, NO_EXTRA_USER_LINKS) 'LogException':Called before an exception(or PHP error) is logged. This is meant for integration with external error aggregation services