|
MediaWiki
REL1_20
|
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 | |
| Array of MW configuration globals this class uses. | |
| $internalDefaults | |
| Internal variables for installation. | |
Class for setting up the MediaWiki database using IBM_DB2.
Definition at line 30 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 267 of file Ibm_db2Installer.php.
References DatabaseInstaller\$parent.
Check if database has a tablspace with pagesize >= 32k.
Definition at line 226 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 185 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 66 of file Ibm_db2Installer.php.
References Html\closeElement(), Html\element(), DatabaseInstaller\getInstallUserBox(), DatabaseInstaller\getTextBox(), Html\openElement(), and wfMessage().
Generate the code to store the DB2-specific settings defined by the configuration form.
Reimplemented from DatabaseInstaller.
Definition at line 258 of file Ibm_db2Installer.php.
References LocalSettingsGenerator\escapePhpString(), and DatabaseInstaller\getVar().
Get the DB2 database extension name.
Reimplemented from DatabaseInstaller.
Definition at line 50 of file Ibm_db2Installer.php.
Determine whether the DB2 database extension is currently available in PHP.
Reimplemented from DatabaseInstaller.
Definition at line 58 of file Ibm_db2Installer.php.
References DatabaseInstaller\checkExtension().
Open a DB2 database connection.
Reimplemented from DatabaseInstaller.
Definition at line 135 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 157 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 82 of file Ibm_db2Installer.php.
References DatabaseInstaller\getConnection(), DatabaseInstaller\getVar(), Status\newGood(), DatabaseInstaller\setVarsFromRequest(), and DatabaseInstaller\submitInstallUserBox().
Ibm_db2Installer::$globalNames [protected] |
array(
'wgDBserver',
'wgDBport',
'wgDBname',
'wgDBuser',
'wgDBpassword',
'wgDBmwschema',
)
Array of MW configuration globals this class uses.
Reimplemented from DatabaseInstaller.
Definition at line 33 of file Ibm_db2Installer.php.
Ibm_db2Installer::$internalDefaults [protected] |
array(
'_InstallUser' => 'db2admin'
)
Internal variables for installation.
Reimplemented from DatabaseInstaller.
Definition at line 42 of file Ibm_db2Installer.php.