MediaWiki  1.34.4
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 }
WebInstallerPage\startForm
startForm()
Definition: WebInstallerPage.php:69
WebInstallerDBSettings\execute
execute()
Definition: WebInstallerDBSettings.php:27
WebInstallerPage\endForm
endForm( $continue='continue', $back='back')
Definition: WebInstallerPage.php:86
WebInstallerPage\getVar
getVar( $var, $default=null)
Definition: WebInstallerPage.php:152
WebInstallerPage\addHTML
addHTML( $html)
Definition: WebInstallerPage.php:65
WebInstallerPage
Abstract class to define pages for the web installer.
Definition: WebInstallerPage.php:30
WebInstallerDBSettings
Definition: WebInstallerDBSettings.php:22