MediaWiki
REL1_19
|
Class for setting up the MediaWiki database using SQLLite. More...
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. |
Class for setting up the MediaWiki database using SQLLite.
Definition at line 15 of file SqliteInstaller.php.
Reimplemented from DatabaseInstaller.
Definition at line 40 of file SqliteInstaller.php.
References $db, $result, DatabaseSqlite\getFulltextSearchModule(), MINIMUM_VERSION, and Status\newGood().
Reimplemented from DatabaseInstaller.
Definition at line 212 of file SqliteInstaller.php.
References setupSearchIndex().
static SqliteInstaller::dataDirOKmaybeCreate | ( | $ | dir, |
$ | create = false |
||
) | [static, private] |
$dir | |
$create | bool |
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().
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().
Get a name=>value map of MW configuration globals that overrides.
Reimplemented from DatabaseInstaller.
Definition at line 54 of file SqliteInstaller.php.
References $path.
Reimplemented from DatabaseInstaller.
Definition at line 238 of file SqliteInstaller.php.
References $dir, LocalSettingsGenerator\escapePhpString(), and DatabaseInstaller\getVar().
Return the internal name, e.g.
'mysql', or 'sqlite'.
Reimplemented from DatabaseInstaller.
Definition at line 28 of file SqliteInstaller.php.
Reimplemented from DatabaseInstaller.
Definition at line 32 of file SqliteInstaller.php.
References DatabaseInstaller\checkExtension().
Reimplemented from DatabaseInstaller.
Definition at line 165 of file SqliteInstaller.php.
References $dir, DatabaseSqlite\generateFileName(), and DatabaseInstaller\getVar().
Reimplemented from DatabaseInstaller.
Definition at line 144 of file SqliteInstaller.php.
References $db, $dir, $wgSQLiteDataDir, DatabaseInstaller\getVar(), and Status\newGood().
static SqliteInstaller::realpath | ( | $ | path | ) | [static, private] |
Safe wrapper for PHP's realpath() that fails gracefully if it's unable to canonicalize the path.
$path | string |
Definition at line 79 of file SqliteInstaller.php.
References $path, and $result.
Referenced by submitConnectForm().
Reimplemented from DatabaseInstaller.
Definition at line 180 of file SqliteInstaller.php.
References $db, $dir, $file, dataDirOKmaybeCreate(), DatabaseSqlite\generateFileName(), DatabaseInstaller\getConnection(), DatabaseInstaller\getVar(), Status\newFatal(), DatabaseInstaller\setupSchemaVars(), and DatabaseInstaller\setVar().
SqliteInstaller::setupSearchIndex | ( | &$ | status | ) |
$status | Status |
Definition at line 221 of file SqliteInstaller.php.
References $IP, and DatabaseSqlite\getFulltextSearchModule().
Referenced by createTables().
Reimplemented from DatabaseInstaller.
Definition at line 90 of file SqliteInstaller.php.
References $dir, $result, dataDirOKmaybeCreate(), DatabaseInstaller\getVar(), realpath(), DatabaseInstaller\setVar(), and DatabaseInstaller\setVarsFromRequest().
SqliteInstaller::$db |
Reimplemented from DatabaseInstaller.
Definition at line 21 of file SqliteInstaller.php.
Referenced by checkPrerequisites(), openConnection(), and setupDatabase().
SqliteInstaller::$globalNames [protected] |
array( 'wgDBname', 'wgSQLiteDataDir', )
Reimplemented from DatabaseInstaller.
Definition at line 23 of file SqliteInstaller.php.
const SqliteInstaller::MINIMUM_VERSION = '3.3.7' |
Definition at line 16 of file SqliteInstaller.php.
Referenced by checkPrerequisites().