MediaWiki master
|
A task context for use in installPreConfigured.php. More...
Inherits MediaWiki\Installer\Task\ITaskContext.
Public Member Functions | |
__construct (Config $config, LBFactory $lbFactory) | |
getConfigVar (string $name) | |
Get a MediaWiki configuration value for the wiki being created. | |
getConnection ( $type=self::CONN_DONT_KNOW) | |
Connect to the database for a specified purpose. | |
getDbType () | |
Get the selected database type name. | |
getOption (string $name) | |
Get a named installer option. | |
getProvision (string $name) | |
Get the object stored by provide() | |
getSchemaVars () | |
Get schema variable replacements to be applied to SQL files. | |
provide (string $name, $value) | |
Store an object to be used by a later task. | |
setConfigVar (string $name, $value) | |
Override a configuration variable. | |
setOption (string $name, $value) | |
Set an installer option. | |
Additional Inherited Members | |
![]() | |
const | CONN_CREATE_DATABASE = 'create-database' |
A connection for creating DBs, suitable for pre-installation. | |
const | CONN_CREATE_SCHEMA = 'create-schema' |
A connection to the new DB, for creating schemas and other similar objects in the new DB. | |
const | CONN_CREATE_TABLES = 'create-tables' |
A connection with a role suitable for creating tables. | |
const | CONN_DONT_KNOW = 'dont-know' |
Legacy default connection type. | |
A task context for use in installPreConfigured.php.
Definition at line 18 of file AddWikiTaskContext.php.
Definition at line 34 of file AddWikiTaskContext.php.
MediaWiki\Installer\Task\AddWikiTaskContext::getConfigVar | ( | string | $name | ) |
Get a MediaWiki configuration value for the wiki being created.
The name should not have a "wg" prefix.
string | $name |
Implements MediaWiki\Installer\Task\ITaskContext.
Definition at line 39 of file AddWikiTaskContext.php.
MediaWiki\Installer\Task\AddWikiTaskContext::getConnection | ( | $type = self::CONN_DONT_KNOW | ) |
Connect to the database for a specified purpose.
string | $type | One of the self::CONN_* constants. Using CONN_DONT_KNOW is deprecated and will cause an exception to be thrown in a future release. |
Implements MediaWiki\Installer\Task\ITaskContext.
Definition at line 47 of file AddWikiTaskContext.php.
MediaWiki\Installer\Task\AddWikiTaskContext::getDbType | ( | ) |
Get the selected database type name.
Implements MediaWiki\Installer\Task\ITaskContext.
Definition at line 97 of file AddWikiTaskContext.php.
MediaWiki\Installer\Task\AddWikiTaskContext::getOption | ( | string | $name | ) |
Get a named installer option.
string | $name |
Implements MediaWiki\Installer\Task\ITaskContext.
Definition at line 43 of file AddWikiTaskContext.php.
MediaWiki\Installer\Task\AddWikiTaskContext::getProvision | ( | string | $name | ) |
Get the object stored by provide()
string | $name |
Implements MediaWiki\Installer\Task\ITaskContext.
Definition at line 105 of file AddWikiTaskContext.php.
MediaWiki\Installer\Task\AddWikiTaskContext::getSchemaVars | ( | ) |
Get schema variable replacements to be applied to SQL files.
Implements MediaWiki\Installer\Task\ITaskContext.
Definition at line 85 of file AddWikiTaskContext.php.
MediaWiki\Installer\Task\AddWikiTaskContext::provide | ( | string | $name, |
$value ) |
Store an object to be used by a later task.
string | $name | |
mixed | $value |
Implements MediaWiki\Installer\Task\ITaskContext.
Definition at line 101 of file AddWikiTaskContext.php.
MediaWiki\Installer\Task\AddWikiTaskContext::setConfigVar | ( | string | $name, |
$value ) |
Override a configuration variable.
string | $name | |
mixed | $value |
Definition at line 119 of file AddWikiTaskContext.php.
MediaWiki\Installer\Task\AddWikiTaskContext::setOption | ( | string | $name, |
$value ) |
Set an installer option.
string | $name | |
mixed | $value |
Definition at line 129 of file AddWikiTaskContext.php.