MediaWiki
REL1_41
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:32
WebInstallerPage\startForm
startForm()
Definition
WebInstallerPage.php:71
WebInstallerPage\endForm
endForm( $continue='continue', $back='back')
Definition
WebInstallerPage.php:88
WebInstallerPage\addHTML
addHTML( $html)
Definition
WebInstallerPage.php:67
WebInstallerPage\getVar
getVar( $var, $default=null)
Definition
WebInstallerPage.php:154
includes
installer
WebInstallerDBSettings.php
Generated on Wed Nov 27 2024 07:23:34 for MediaWiki by
1.10.0