MediaWiki
master
Toggle main menu visibility
WebInstallerDBSettings.php
Go to the documentation of this file.
1
<?php
7
8
namespace
MediaWiki\Installer;
9
10
class
WebInstallerDBSettings
extends
WebInstallerPage
{
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
}
MediaWiki\Installer\WebInstallerDBSettings
Definition
WebInstallerDBSettings.php:10
MediaWiki\Installer\WebInstallerDBSettings\execute
execute()
Definition
WebInstallerDBSettings.php:15
MediaWiki\Installer\WebInstallerPage
Abstract class to define pages for the web installer.
Definition
WebInstallerPage.php:19
MediaWiki\Installer\WebInstallerPage\endForm
endForm( $continue='continue', $back='back')
Definition
WebInstallerPage.php:72
MediaWiki\Installer\WebInstallerPage\getVar
getVar( $var, $default=null)
Definition
WebInstallerPage.php:140
MediaWiki\Installer\WebInstallerPage\addHTML
addHTML( $html)
Definition
WebInstallerPage.php:51
MediaWiki\Installer\WebInstallerPage\startForm
startForm()
Definition
WebInstallerPage.php:55
includes
Installer
WebInstallerDBSettings.php
Generated on
for MediaWiki by
1.18.0