MediaWiki  REL1_19
Ibm_db2Installer Class Reference

Class for setting up the MediaWiki database using IBM_DB2. More...

Inheritance diagram for Ibm_db2Installer:
Collaboration diagram for Ibm_db2Installer:

List of all members.

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

Detailed Description

Class for setting up the MediaWiki database using IBM_DB2.

Since:
1.17

Definition at line 15 of file Ibm_db2Installer.php.


Constructor & Destructor Documentation

Construct and initialise parent.

This is typically only called from Installer::getDBInstaller()

Parameters:
$parent

Reimplemented from DatabaseInstaller.

Definition at line 252 of file Ibm_db2Installer.php.

References DatabaseInstaller\$parent.


Member Function Documentation

Check if database has a tablspace with pagesize >= 32k.

Returns:
Status

Definition at line 211 of file Ibm_db2Installer.php.

References $result, DatabaseInstaller\getConnection(), and DatabaseInstaller\getVar().

Referenced by createTables().

Here is the call graph for this function:

Here is the caller graph for this function:

Create tables from scratch.

First check if pagesize >= 32k.

Returns:
Status

Reimplemented from DatabaseInstaller.

Definition at line 170 of file Ibm_db2Installer.php.

References checkPageSize(), DatabaseInstaller\enableLB(), DatabaseInstaller\getConnection(), and DatabaseInstaller\getVar().

Here is the call graph for this function:

Generate a connection form for a DB2 database.

Returns:
string

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().

Here is the call graph for this function:

Generate the code to store the DB2-specific settings defined by the configuration form.

Returns:
string

Reimplemented from DatabaseInstaller.

Definition at line 243 of file Ibm_db2Installer.php.

References LocalSettingsGenerator\escapePhpString(), and DatabaseInstaller\getVar().

Here is the call graph for this function:

Get the DB2 database extension name.

Returns:
string

Reimplemented from DatabaseInstaller.

Definition at line 35 of file Ibm_db2Installer.php.

Determine whether the DB2 database extension is currently available in PHP.

Returns:
boolean

Reimplemented from DatabaseInstaller.

Definition at line 43 of file Ibm_db2Installer.php.

References DatabaseInstaller\checkExtension().

Here is the call graph for this function:

Open a DB2 database connection.

Returns:
Status

Reimplemented from DatabaseInstaller.

Definition at line 120 of file Ibm_db2Installer.php.

References DatabaseInstaller\$db, DatabaseInstaller\getVar(), and Status\newGood().

Here is the call graph for this function:

Create a DB2 database for MediaWiki.

Returns:
Status

Reimplemented from DatabaseInstaller.

Definition at line 142 of file Ibm_db2Installer.php.

References DatabaseInstaller\getConnection(), DatabaseInstaller\getVar(), and DatabaseInstaller\setupSchemaVars().

Here is the call graph for this function:

Validate and then execute the connection form for a DB2 database.

Returns:
Status

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().

Here is the call graph for this function:


Member Data Documentation

Ibm_db2Installer::$globalNames [protected]
Initial value:
 array(
                'wgDBserver',
                'wgDBport',
                'wgDBname',
                'wgDBuser',
                'wgDBpassword',
                'wgDBmwschema',
        )

Reimplemented from DatabaseInstaller.

Definition at line 18 of file Ibm_db2Installer.php.

Ibm_db2Installer::$internalDefaults [protected]
Initial value:
 array(
                '_InstallUser' => 'db2admin'
        )

Reimplemented from DatabaseInstaller.

Definition at line 27 of file Ibm_db2Installer.php.


The documentation for this class was generated from the following file: