|
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.The name should not have a "wg" prefix.
| |||||||
| 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 | |
Public Attributes inherited from MediaWiki\Installer\Task\ITaskContext | |
| 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 40 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 50 of file AddWikiTaskContext.php.
| MediaWiki\Installer\Task\AddWikiTaskContext::getDbType | ( | ) |
Get the selected database type name.
Implements MediaWiki\Installer\Task\ITaskContext.
Definition at line 100 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 45 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 110 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 88 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 105 of file AddWikiTaskContext.php.
| MediaWiki\Installer\Task\AddWikiTaskContext::setConfigVar | ( | string | $name, |
| $value ) |
Override a configuration variable.
| string | $name | |
| mixed | $value |
Definition at line 124 of file AddWikiTaskContext.php.
| MediaWiki\Installer\Task\AddWikiTaskContext::setOption | ( | string | $name, |
| $value ) |
Set an installer option.
| string | $name | |
| mixed | $value |
Definition at line 134 of file AddWikiTaskContext.php.