31 if ( $this->
getVar(
'_ExistingDBSettings' ) ) {
35 $r = $this->parent->request;
36 if ( $r->wasPosted() ) {
39 if ( $status->isGood() ) {
40 $this->
setVar(
'_UpgradeDone',
false );
44 $this->parent->showStatusBox( $status );
50 $types =
"<ul class=\"config-settings-block\">\n";
52 $defaultType = $this->
getVar(
'wgDBtype' );
57 $dbSupport .=
wfMessage(
"config-dbsupport-$type" )->plain() .
"\n";
59 $this->
addHTML( $this->parent->getInfoBox(
60 wfMessage(
'config-support-info', trim( $dbSupport ) )->plain() ) );
64 $compiledDBs = $this->parent->getCompiledDBs();
65 if ( !in_array( $defaultType, $compiledDBs ) ) {
66 $defaultType = $compiledDBs[0];
69 foreach ( $compiledDBs as
$type ) {
70 $installer = $this->parent->getDBInstaller(
$type );
74 $installer->getReadableName(),
78 $type == $defaultType,
79 [
'class' =>
'dbRadio',
'rel' =>
"DB_wrapper_$type" ]
84 $settings .= Html::openElement(
87 'id' =>
'DB_wrapper_' .
$type,
88 'class' =>
'dbWrapper'
91 Html::element(
'h3', [],
wfMessage(
'config-header-' .
$type )->text() ) .
92 $installer->getConnectForm() .
96 $types .=
"</ul><br style=\"clear: left\"/>\n";
98 $this->
addHTML( $this->parent->label(
'config-db-type',
false, $types ) . $settings );
108 $r = $this->parent->request;
109 $type = $r->getVal(
'DBType' );
114 $installer = $this->parent->getDBInstaller(
$type );
119 return $installer->submitConnectForm();
wfMessage( $key,... $params)
This is the function for getting translated interface messages.
static getDBTypes()
Get a list of known DB types.
static newFatal( $message,... $parameters)
Factory function for fatal errors.
Abstract class to define pages for the web installer.
endForm( $continue='continue', $back='back')
getVar( $var, $default=null)
static radioLabel( $label, $name, $value, $id, $checked=false, $attribs=[])
Convenience function to build an HTML radio button with a label.