MediaWiki  REL1_19
OracleInstaller Class Reference

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

Inheritance diagram for OracleInstaller:
Collaboration diagram for OracleInstaller:

List of all members.

Public Member Functions

 createTables ()
 Overload: after this action field info table has to be rebuilt.
 getConnectForm ()
 Get HTML for a web form that configures this database.
 getLocalSettings ()
 Get the DBMS-specific options for LocalSettings.php generation.
 getName ()
 Return the internal name, e.g.
 getSchemaVars ()
 Override this to provide DBMS-specific schema variables, to be substituted into tables.sql and other schema files.
 isCompiled ()
 needsUpgrade ()
 Determine whether an existing installation of MediaWiki is present in the configured administrative connection.
 openConnection ()
 Open a connection to the database using the administrative user/password currently defined in the session, without any caching.
 openSYSDBAConnection ()
 preInstall ()
 Allow DB installers a chance to make last-minute changes before installation occurs.
 setupDatabase ()
 Create the database and return a Status object indicating success or failure.
 setupUser ()
 submitConnectForm ()
 Set variables based on the request array, assuming it was submitted via the form returned by getConnectForm().
 submitInstallUserBox ()
 Submit a standard install user fieldset.

Public Attributes

 $minimumVersion = '9.0.1'

Protected Attributes

 $connError = null
 $globalNames
 $internalDefaults

Detailed Description

Class for setting up the MediaWiki database using Oracle.

Since:
1.17

Definition at line 15 of file OracleInstaller.php.


Member Function Documentation

Overload: after this action field info table has to be rebuilt.

Reimplemented from DatabaseInstaller.

Definition at line 247 of file OracleInstaller.php.

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

Here is the call graph for this function:

Get HTML for a web form that configures this database.

Configuration at this time should be the minimum needed to connect and test whether install or upgrade is required.

If this is called, $this->parent can be assumed to be a WebInstaller.

Reimplemented from DatabaseInstaller.

Definition at line 43 of file OracleInstaller.php.

References Html\closeElement(), Html\element(), DatabaseInstaller\getInstallUserBox(), DatabaseInstaller\getTextBox(), DatabaseInstaller\getVar(), DatabaseInstaller\getWebUserBox(), Html\openElement(), and wfMsg().

Here is the call graph for this function:

Get the DBMS-specific options for LocalSettings.php generation.

Returns:
String

Reimplemented from DatabaseInstaller.

Definition at line 277 of file OracleInstaller.php.

References DatabaseInstaller\getVar().

Here is the call graph for this function:

Return the internal name, e.g.

'mysql', or 'sqlite'.

Reimplemented from DatabaseInstaller.

Definition at line 35 of file OracleInstaller.php.

Override this to provide DBMS-specific schema variables, to be substituted into tables.sql and other schema files.

Reimplemented from DatabaseInstaller.

Definition at line 259 of file OracleInstaller.php.

References DatabaseInstaller\getVar().

Here is the call graph for this function:

Returns:
true if the client library is compiled in.

Reimplemented from DatabaseInstaller.

Definition at line 39 of file OracleInstaller.php.

References DatabaseInstaller\checkExtension().

Here is the call graph for this function:

Determine whether an existing installation of MediaWiki is present in the configured administrative connection.

Returns true if there is such a wiki, false if the database doesn't exist.

Traditionally, this is done by testing for the existence of either the revision table or the cur table.

Returns:
Boolean

Reimplemented from DatabaseInstaller.

Definition at line 173 of file OracleInstaller.php.

References DatabaseInstaller\getVar().

Here is the call graph for this function:

Open a connection to the database using the administrative user/password currently defined in the session, without any caching.

Returns a status object. On success, the status object will contain a Database object in its value member.

Returns:
Status

Reimplemented from DatabaseInstaller.

Definition at line 135 of file OracleInstaller.php.

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

Referenced by setupUser().

Here is the call graph for this function:

Here is the caller graph for this function:

Definition at line 154 of file OracleInstaller.php.

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

Referenced by setupUser(), and submitConnectForm().

Here is the call graph for this function:

Here is the caller graph for this function:

Allow DB installers a chance to make last-minute changes before installation occurs.

This happens before setupDatabase() or createTables() is called, but long after the constructor. Helpful for things like modifying setup steps :)

Reimplemented from DatabaseInstaller.

Definition at line 181 of file OracleInstaller.php.

Create the database and return a Status object indicating success or failure.

Returns:
Status

Reimplemented from DatabaseInstaller.

Definition at line 191 of file OracleInstaller.php.

References Status\newGood().

Here is the call graph for this function:

Set variables based on the request array, assuming it was submitted via the form returned by getConnectForm().

Validate the connection settings by attempting to connect with them.

If this is called, $this->parent can be assumed to be a WebInstaller.

Returns:
Status

Reimplemented from DatabaseInstaller.

Definition at line 66 of file OracleInstaller.php.

References $version, DatabaseInstaller\getConnection(), DatabaseInstaller\getVar(), Status\newFatal(), Status\newGood(), openSYSDBAConnection(), DatabaseInstaller\setVarsFromRequest(), submitInstallUserBox(), and DatabaseInstaller\submitWebUserBox().

Here is the call graph for this function:

Submit a standard install user fieldset.

Reimplemented from DatabaseInstaller.

Definition at line 60 of file OracleInstaller.php.

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

Referenced by submitConnectForm().

Here is the call graph for this function:

Here is the caller graph for this function:


Member Data Documentation

OracleInstaller::$connError = null [protected]

Definition at line 33 of file OracleInstaller.php.

OracleInstaller::$globalNames [protected]
Initial value:
 array(
                'wgDBserver',
                'wgDBname',
                'wgDBuser',
                'wgDBpassword',
                'wgDBprefix',
        )

Reimplemented from DatabaseInstaller.

Definition at line 17 of file OracleInstaller.php.

OracleInstaller::$internalDefaults [protected]
Initial value:
 array(
                '_OracleDefTS' => 'USERS',
                '_OracleTempTS' => 'TEMP',
                '_InstallUser' => 'SYSDBA',
        )

Reimplemented from DatabaseInstaller.

Definition at line 25 of file OracleInstaller.php.

OracleInstaller::$minimumVersion = '9.0.1'

Definition at line 31 of file OracleInstaller.php.


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