MediaWiki master
ITaskContext.php
Go to the documentation of this file.
1<?php
2
4
6
14interface ITaskContext {
18 public const CONN_CREATE_DATABASE = 'create-database';
19
24 public const CONN_CREATE_SCHEMA = 'create-schema';
25
29 public const CONN_CREATE_TABLES = 'create-tables';
30
39 public const CONN_DONT_KNOW = 'dont-know';
40
48 public function getConfigVar( string $name );
49
56 public function getOption( string $name );
57
65 public function getConnection( $type = self::CONN_DONT_KNOW ): ConnectionStatus;
66
72 public function getDbType(): string;
73
80 public function provide( string $name, $value );
81
88 public function getProvision( string $name );
89
95 public function getSchemaVars();
96}
Dependency bundle and execution context for installer tasks.
getOption(string $name)
Get a named installer option.
const CONN_CREATE_SCHEMA
A connection to the new DB, for creating schemas and other similar objects in the new DB.
getDbType()
Get the selected database type name.
getConnection( $type=self::CONN_DONT_KNOW)
Connect to the database for a specified purpose.
getProvision(string $name)
Get the object stored by provide()
const CONN_CREATE_DATABASE
A connection for creating DBs, suitable for pre-installation.
getSchemaVars()
Get schema variables.
getConfigVar(string $name)
Get a MediaWiki configuration value for the wiki being created.
const CONN_CREATE_TABLES
A connection with a role suitable for creating tables.
provide(string $name, $value)
Store an object to be used by a later task.
const CONN_DONT_KNOW
Legacy default connection type.