MediaWiki  REL1_20
SqliteInstaller Class Reference

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

Inheritance diagram for SqliteInstaller:
Collaboration diagram for SqliteInstaller:

List of all members.

Public Member Functions

 checkPrerequisites ()
 createTables ()
 getConnectForm ()
 Get HTML for a web form that configures this database.
 getGlobalDefaults ()
 Get a name=>value map of MW configuration globals that overrides.
 getLocalSettings ()
 getName ()
 Return the internal name, e.g.
 isCompiled ()
 needsUpgrade ()
 openConnection ()
 setupDatabase ()
 setupSearchIndex (&$status)
 submitConnectForm ()

Public Attributes

DatabaseSqlite $db
 The database connection.
const MINIMUM_VERSION = '3.3.7'

Protected Attributes

 $globalNames
 Array of MW configuration globals this class uses.

Static Private Member Functions

static dataDirOKmaybeCreate ($dir, $create=false)
static realpath ($path)
 Safe wrapper for PHP's realpath() that fails gracefully if it's unable to canonicalize the path.

Detailed Description

Class for setting up the MediaWiki database using SQLLite.

Since:
1.17

Definition at line 30 of file SqliteInstaller.php.


Member Function Documentation

Returns:
Status:

Reimplemented from DatabaseInstaller.

Definition at line 54 of file SqliteInstaller.php.

Returns:
Status

Reimplemented from DatabaseInstaller.

Definition at line 226 of file SqliteInstaller.php.

static SqliteInstaller::dataDirOKmaybeCreate ( dir,
create = false 
) [static, private]
Parameters:
$dir
$createbool
Returns:
Status

Definition at line 123 of file SqliteInstaller.php.

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 81 of file SqliteInstaller.php.

References DatabaseInstaller\getTextBox().

Get a name=>value map of MW configuration globals that overrides.

DefaultSettings.php

Returns:
array

Reimplemented from DatabaseInstaller.

Definition at line 68 of file SqliteInstaller.php.

References $path.

Returns:
string

Reimplemented from DatabaseInstaller.

Definition at line 252 of file SqliteInstaller.php.

Return the internal name, e.g.

'mysql', or 'sqlite'.

Reimplemented from DatabaseInstaller.

Definition at line 42 of file SqliteInstaller.php.

Returns:
bool Returns true if the client library is compiled in.

Reimplemented from DatabaseInstaller.

Definition at line 46 of file SqliteInstaller.php.

References DatabaseInstaller\checkExtension().

Returns:
bool

Reimplemented from DatabaseInstaller.

Definition at line 179 of file SqliteInstaller.php.

Returns:
Status

Reimplemented from DatabaseInstaller.

Definition at line 158 of file SqliteInstaller.php.

static SqliteInstaller::realpath ( path) [static, private]

Safe wrapper for PHP's realpath() that fails gracefully if it's unable to canonicalize the path.

Parameters:
$pathstring
Returns:
string

Definition at line 93 of file SqliteInstaller.php.

Returns:
Status

Reimplemented from DatabaseInstaller.

Definition at line 194 of file SqliteInstaller.php.

Parameters:
$statusStatus
Returns:
Status

Definition at line 235 of file SqliteInstaller.php.

Returns:
Status

Reimplemented from DatabaseInstaller.

Definition at line 104 of file SqliteInstaller.php.


Member Data Documentation

DatabaseSqlite SqliteInstaller::$db

The database connection.

Reimplemented from DatabaseInstaller.

Definition at line 35 of file SqliteInstaller.php.

SqliteInstaller::$globalNames [protected]
Initial value:
 array(
                'wgDBname',
                'wgSQLiteDataDir',
        )

Array of MW configuration globals this class uses.

Reimplemented from DatabaseInstaller.

Definition at line 37 of file SqliteInstaller.php.

Definition at line 31 of file SqliteInstaller.php.


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