MediaWiki  1.34.0
WebInstallerDBSettings.php
Go to the documentation of this file.
1 <?php
22 class WebInstallerDBSettings extends WebInstallerPage {
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 }
WebInstallerDBSettings\execute
execute()
Definition: WebInstallerDBSettings.php:27
$status
return $status
Definition: SyntaxHighlight.php:347
WebInstallerDBSettings
Definition: WebInstallerDBSettings.php:22