MediaWiki master
|
Class for setting up the MediaWiki database using SQLLite. More...
Inherits MediaWiki\Installer\DatabaseInstaller.
Public Member Functions | |
checkPrerequisites () | |
createManualTables () | |
Create database tables from scratch. | |
createTables () | |
getConnectForm (WebInstaller $webInstaller) | |
getGlobalDefaults () | |
Get a name=>value map of MW configuration globals for the default values. | |
getLocalSettings () | |
getName () | |
Return the internal name, e.g. | |
getSettingsForm (WebInstaller $webInstaller) | |
isCompiled () | |
needsUpgrade () | |
openConnection () | |
setupDatabase () | |
setupSearchIndex (&$status) | |
Public Member Functions inherited from MediaWiki\Installer\DatabaseInstaller | |
__construct ( $parent) | |
Construct and initialise parent. | |
createExtensionTables () | |
Create the tables for each extension the user enabled. | |
doUpgrade () | |
Perform database upgrades. | |
enableLB () | |
Set up LBFactory so that getPrimaryDatabase() etc. | |
getConnection () | |
Connect to the database using the administrative user/password currently defined in the session. | |
getGeneratedSchemaPath ( $db) | |
Return a path to the DBMS-specific automatically generated schema file. | |
getGlobalNames () | |
Get an array of MW configuration globals that will be configured by this class. | |
getInternalDefaults () | |
Get a name=>value map of internal variables used during installation. | |
getReadableName () | |
Get the internationalised name for this DBMS. | |
getSchemaPath ( $db) | |
Return a path to the DBMS-specific schema file, otherwise default to tables.sql. | |
getSchemaVars () | |
Override this to provide DBMS-specific schema variables, to be substituted into tables.sql and other schema files. | |
getVar ( $var, $default=null) | |
Get a variable, taking local defaults into account. | |
insertUpdateKeys () | |
Insert update keys into table to prevent running unneeded updates. | |
outputHandler ( $string) | |
populateInterwikiTable () | |
Common function for databases that don't understand the MySQLish syntax of interwiki.list. | |
preInstall () | |
Allow DB installers a chance to make last-minute changes before installation occurs. | |
preUpgrade () | |
Allow DB installers a chance to make checks before upgrade. | |
setupSchemaVars () | |
Set appropriate schema variables in the current database connection. | |
setVar ( $name, $value) | |
Convenience alias for $this->parent->setVar() | |
Static Public Member Functions | |
static | checkDataDir ( $dir) |
Check if the data directory is writable or can be created. | |
static | realpath ( $path) |
Safe wrapper for PHP's realpath() that fails gracefully if it's unable to canonicalize the path. | |
Static Public Member Functions inherited from MediaWiki\Installer\DatabaseInstaller | |
static | meetsMinimumRequirement (IDatabase $conn) |
Whether the provided version meets the necessary requirements for this type. | |
Public Attributes | |
DatabaseSqlite | $db |
Public Attributes inherited from MediaWiki\Installer\DatabaseInstaller | |
Database | $db = null |
The database connection. | |
Installer | $parent |
The Installer object. | |
Static Public Attributes | |
static | $minimumVersion = '3.8.0' |
Static Public Attributes inherited from MediaWiki\Installer\DatabaseInstaller | |
static string | $minimumVersion |
Set by subclasses. | |
Protected Member Functions | |
makeStubDBFile ( $dir, $db) | |
Protected Member Functions inherited from MediaWiki\Installer\DatabaseInstaller | |
selectDatabase (Database $conn, string $database) | |
Protected Attributes | |
$globalNames | |
Protected Attributes inherited from MediaWiki\Installer\DatabaseInstaller | |
array | $globalNames = [] |
Array of MW configuration globals this class uses. | |
array | $internalDefaults = [] |
Internal variables for installation. | |
Static Protected Attributes | |
static | $notMinimumVersionMessage = 'config-outdated-sqlite' |
Static Protected Attributes inherited from MediaWiki\Installer\DatabaseInstaller | |
static string | $notMinimumVersionMessage |
Set by subclasses. | |
Additional Inherited Members | |
Static Protected Member Functions inherited from MediaWiki\Installer\DatabaseInstaller | |
static | checkExtension ( $name) |
Convenience function. | |
Class for setting up the MediaWiki database using SQLLite.
Definition at line 40 of file SqliteInstaller.php.
|
static |
Check if the data directory is writable or can be created.
string | $dir | Path to the data directory |
Definition at line 122 of file SqliteInstaller.php.
Referenced by MediaWiki\Installer\SqliteConnectForm\submit().
MediaWiki\Installer\SqliteInstaller::checkPrerequisites | ( | ) |
Reimplemented from MediaWiki\Installer\DatabaseInstaller.
Definition at line 77 of file SqliteInstaller.php.
MediaWiki\Installer\SqliteInstaller::createManualTables | ( | ) |
Create database tables from scratch.
Reimplemented from MediaWiki\Installer\DatabaseInstaller.
Definition at line 335 of file SqliteInstaller.php.
MediaWiki\Installer\SqliteInstaller::createTables | ( | ) |
Reimplemented from MediaWiki\Installer\DatabaseInstaller.
Definition at line 326 of file SqliteInstaller.php.
MediaWiki\Installer\SqliteInstaller::getConnectForm | ( | WebInstaller | $webInstaller | ) |
Reimplemented from MediaWiki\Installer\DatabaseInstaller.
Definition at line 66 of file SqliteInstaller.php.
MediaWiki\Installer\SqliteInstaller::getGlobalDefaults | ( | ) |
Get a name=>value map of MW configuration globals for the default values.
Reimplemented from MediaWiki\Installer\DatabaseInstaller.
Definition at line 89 of file SqliteInstaller.php.
MediaWiki\Installer\SqliteInstaller::getLocalSettings | ( | ) |
Reimplemented from MediaWiki\Installer\DatabaseInstaller.
Definition at line 368 of file SqliteInstaller.php.
MediaWiki\Installer\SqliteInstaller::getName | ( | ) |
Return the internal name, e.g.
'mysql', or 'sqlite'.
Reimplemented from MediaWiki\Installer\DatabaseInstaller.
Definition at line 58 of file SqliteInstaller.php.
MediaWiki\Installer\SqliteInstaller::getSettingsForm | ( | WebInstaller | $webInstaller | ) |
Reimplemented from MediaWiki\Installer\DatabaseInstaller.
Definition at line 70 of file SqliteInstaller.php.
MediaWiki\Installer\SqliteInstaller::isCompiled | ( | ) |
Reimplemented from MediaWiki\Installer\DatabaseInstaller.
Definition at line 62 of file SqliteInstaller.php.
References MediaWiki\Installer\DatabaseInstaller\checkExtension().
|
protected |
MediaWiki\Installer\SqliteInstaller::needsUpgrade | ( | ) |
Reimplemented from MediaWiki\Installer\DatabaseInstaller.
Definition at line 186 of file SqliteInstaller.php.
MediaWiki\Installer\SqliteInstaller::openConnection | ( | ) |
Reimplemented from MediaWiki\Installer\DatabaseInstaller.
Definition at line 167 of file SqliteInstaller.php.
|
static |
Safe wrapper for PHP's realpath() that fails gracefully if it's unable to canonicalize the path.
string | $path |
Definition at line 113 of file SqliteInstaller.php.
References $path.
Referenced by MediaWiki\Installer\SqliteConnectForm\submit().
MediaWiki\Installer\SqliteInstaller::setupDatabase | ( | ) |
Reimplemented from MediaWiki\Installer\DatabaseInstaller.
Definition at line 201 of file SqliteInstaller.php.
MediaWiki\Installer\SqliteInstaller::setupSearchIndex | ( | & | $status | ) |
Status | &$status |
Definition at line 344 of file SqliteInstaller.php.
References $IP.
DatabaseSqlite MediaWiki\Installer\SqliteInstaller::$db |
Definition at line 50 of file SqliteInstaller.php.
|
protected |
Definition at line 53 of file SqliteInstaller.php.
|
static |
Definition at line 43 of file SqliteInstaller.php.
|
staticprotected |
Definition at line 45 of file SqliteInstaller.php.