MediaWiki master
WebInstallerDBSettings.php
Go to the documentation of this file.
1<?php
22namespace MediaWiki\Installer;
23
25
29 public function execute() {
30 $installer = $this->parent->getDBInstaller( $this->getVar( 'wgDBtype' ) );
31 $form = $installer->getSettingsForm( $this->parent );
32
33 $r = $this->parent->request;
34 if ( $r->wasPosted() ) {
35 $status = $form->submit();
36 if ( $status === false ) {
37 return 'skip';
38 } elseif ( $status->isGood() ) {
39 return 'continue';
40 } else {
41 $this->parent->showStatusBox( $status );
42 }
43 }
44
45 $formHtml = $form->getHtml();
46 if ( $formHtml === false ) {
47 return 'skip';
48 }
49
50 $this->startForm();
51 $this->addHTML( $formHtml );
52 $this->endForm();
53
54 return null;
55 }
56
57}
Abstract class to define pages for the web installer.
endForm( $continue='continue', $back='back')