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