MediaWiki master
WebInstallerDBSettings.php
Go to the documentation of this file.
1<?php
8namespace MediaWiki\Installer;
9
11
15 public function execute() {
16 $installer = $this->parent->getDBInstaller( $this->getVar( 'wgDBtype' ) );
17 $form = $installer->getSettingsForm( $this->parent );
18
19 $r = $this->parent->request;
20 if ( $r->wasPosted() ) {
21 $status = $form->submit();
22 if ( $status === false ) {
23 return 'skip';
24 } elseif ( $status->isGood() ) {
25 return 'continue';
26 } else {
27 $this->parent->showStatusBox( $status );
28 }
29 }
30
31 $formHtml = $form->getHtml();
32 if ( $formHtml === false ) {
33 return 'skip';
34 }
35
36 $this->startForm();
37 $this->addHTML( $formHtml );
38 $this->endForm();
39
40 return null;
41 }
42
43}
Abstract class to define pages for the web installer.
endForm( $continue='continue', $back='back')