MediaWiki
REL1_34
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
Definition
WebInstallerDBSettings.php:22
WebInstallerDBSettings\execute
execute()
Definition
WebInstallerDBSettings.php:27
WebInstallerPage
Abstract class to define pages for the web installer.
Definition
WebInstallerPage.php:30
WebInstallerPage\startForm
startForm()
Definition
WebInstallerPage.php:69
WebInstallerPage\endForm
endForm( $continue='continue', $back='back')
Definition
WebInstallerPage.php:86
WebInstallerPage\addHTML
addHTML( $html)
Definition
WebInstallerPage.php:65
WebInstallerPage\getVar
getVar( $var, $default=null)
Definition
WebInstallerPage.php:152
includes
installer
WebInstallerDBSettings.php
Generated on Fri Apr 5 2024 23:10:00 for MediaWiki by
1.9.8