MediaWiki  REL1_19
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

 $db
const MINIMUM_VERSION = '3.3.7'

Protected Attributes

 $globalNames

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


Member Function Documentation

Returns:
Status:

Reimplemented from DatabaseInstaller.

Definition at line 40 of file SqliteInstaller.php.

References $db, $result, DatabaseSqlite\getFulltextSearchModule(), MINIMUM_VERSION, and Status\newGood().

Here is the call graph for this function:

Returns:
Staus

Reimplemented from DatabaseInstaller.

Definition at line 212 of file SqliteInstaller.php.

References setupSearchIndex().

Here is the call graph for this function:

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

Definition at line 109 of file SqliteInstaller.php.

References $dir, $ok, Installer\maybeGetWebserverPrimaryGroup(), Status\newFatal(), Status\newGood(), wfMkdirParents(), wfRestoreWarnings(), and wfSuppressWarnings().

Referenced by setupDatabase(), and submitConnectForm().

Here is the call graph for this function:

Here is the caller 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 67 of file SqliteInstaller.php.

References DatabaseInstaller\getTextBox().

Here is the call graph for this function:

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

DefaultSettings.php

Reimplemented from DatabaseInstaller.

Definition at line 54 of file SqliteInstaller.php.

References $path.

Returns:
string

Reimplemented from DatabaseInstaller.

Definition at line 238 of file SqliteInstaller.php.

References $dir, LocalSettingsGenerator\escapePhpString(), and 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 28 of file SqliteInstaller.php.

Returns:
true if the client library is compiled in.

Reimplemented from DatabaseInstaller.

Definition at line 32 of file SqliteInstaller.php.

References DatabaseInstaller\checkExtension().

Here is the call graph for this function:

Returns:
bool

Reimplemented from DatabaseInstaller.

Definition at line 165 of file SqliteInstaller.php.

References $dir, DatabaseSqlite\generateFileName(), and DatabaseInstaller\getVar().

Here is the call graph for this function:

Returns:
Status

Reimplemented from DatabaseInstaller.

Definition at line 144 of file SqliteInstaller.php.

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

Here is the call graph for this function:

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

References $path, and $result.

Referenced by submitConnectForm().

Here is the caller graph for this function:

Parameters:
$statusStatus
Returns:
Status

Definition at line 221 of file SqliteInstaller.php.

References $IP, and DatabaseSqlite\getFulltextSearchModule().

Referenced by createTables().

Here is the call graph for this function:

Here is the caller graph for this function:


Member Data Documentation

SqliteInstaller::$db

Reimplemented from DatabaseInstaller.

Definition at line 21 of file SqliteInstaller.php.

Referenced by checkPrerequisites(), openConnection(), and setupDatabase().

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

Reimplemented from DatabaseInstaller.

Definition at line 23 of file SqliteInstaller.php.

Definition at line 16 of file SqliteInstaller.php.

Referenced by checkPrerequisites().


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