MediaWiki
REL1_19
|
Class for setting up the MediaWiki database using IBM_DB2. More...
Public Member Functions | |
__construct ($parent) | |
Construct and initialise parent. | |
checkPageSize () | |
Check if database has a tablspace with pagesize >= 32k. | |
createTables () | |
Create tables from scratch. | |
getConnectForm () | |
Generate a connection form for a DB2 database. | |
getLocalSettings () | |
Generate the code to store the DB2-specific settings defined by the configuration form. | |
getName () | |
Get the DB2 database extension name. | |
isCompiled () | |
Determine whether the DB2 database extension is currently available in PHP. | |
openConnection () | |
Open a DB2 database connection. | |
setupDatabase () | |
Create a DB2 database for MediaWiki. | |
submitConnectForm () | |
Validate and then execute the connection form for a DB2 database. | |
Protected Attributes | |
$globalNames | |
$internalDefaults |
Class for setting up the MediaWiki database using IBM_DB2.
Definition at line 15 of file Ibm_db2Installer.php.
Ibm_db2Installer::__construct | ( | $ | parent | ) |
Construct and initialise parent.
This is typically only called from Installer::getDBInstaller()
$parent |
Reimplemented from DatabaseInstaller.
Definition at line 252 of file Ibm_db2Installer.php.
References DatabaseInstaller\$parent.
Check if database has a tablspace with pagesize >= 32k.
Definition at line 211 of file Ibm_db2Installer.php.
References $result, DatabaseInstaller\getConnection(), and DatabaseInstaller\getVar().
Referenced by createTables().
Create tables from scratch.
First check if pagesize >= 32k.
Reimplemented from DatabaseInstaller.
Definition at line 170 of file Ibm_db2Installer.php.
References checkPageSize(), DatabaseInstaller\enableLB(), DatabaseInstaller\getConnection(), and DatabaseInstaller\getVar().
Generate a connection form for a DB2 database.
Reimplemented from DatabaseInstaller.
Definition at line 51 of file Ibm_db2Installer.php.
References Html\closeElement(), Html\element(), DatabaseInstaller\getInstallUserBox(), DatabaseInstaller\getTextBox(), Html\openElement(), and wfMsg().
Generate the code to store the DB2-specific settings defined by the configuration form.
Reimplemented from DatabaseInstaller.
Definition at line 243 of file Ibm_db2Installer.php.
References LocalSettingsGenerator\escapePhpString(), and DatabaseInstaller\getVar().
Get the DB2 database extension name.
Reimplemented from DatabaseInstaller.
Definition at line 35 of file Ibm_db2Installer.php.
Determine whether the DB2 database extension is currently available in PHP.
Reimplemented from DatabaseInstaller.
Definition at line 43 of file Ibm_db2Installer.php.
References DatabaseInstaller\checkExtension().
Open a DB2 database connection.
Reimplemented from DatabaseInstaller.
Definition at line 120 of file Ibm_db2Installer.php.
References DatabaseInstaller\$db, DatabaseInstaller\getVar(), and Status\newGood().
Create a DB2 database for MediaWiki.
Reimplemented from DatabaseInstaller.
Definition at line 142 of file Ibm_db2Installer.php.
References DatabaseInstaller\getConnection(), DatabaseInstaller\getVar(), and DatabaseInstaller\setupSchemaVars().
Validate and then execute the connection form for a DB2 database.
Reimplemented from DatabaseInstaller.
Definition at line 67 of file Ibm_db2Installer.php.
References $wgDBport, DatabaseInstaller\getConnection(), DatabaseInstaller\getVar(), Status\newGood(), DatabaseInstaller\setVarsFromRequest(), and DatabaseInstaller\submitInstallUserBox().
Ibm_db2Installer::$globalNames [protected] |
array( 'wgDBserver', 'wgDBport', 'wgDBname', 'wgDBuser', 'wgDBpassword', 'wgDBmwschema', )
Reimplemented from DatabaseInstaller.
Definition at line 18 of file Ibm_db2Installer.php.
Ibm_db2Installer::$internalDefaults [protected] |
array( '_InstallUser' => 'db2admin' )
Reimplemented from DatabaseInstaller.
Definition at line 27 of file Ibm_db2Installer.php.