MediaWiki master
|
An installer task which calls a callback function. More...
Inherits MediaWiki\Installer\Task\Task.
Public Member Functions | |
__construct ( $spec) | |
execute () | |
Execute the task. | |
getAliases () | |
Get alternative names of this task. | |
getDependencies () | |
Get a list of names or aliases of tasks that must be done prior to this task. | |
getDescription () | |
Get a human-readable description of what this task does, for use as a progress message. | |
getName () | |
Get the symbolic name of the task. | |
isPostInstall () | |
If this returns true, the task will be scheduled after tasks for which it returns false. | |
![]() | |
getDescriptionMessage () | |
Get the description as a Message object. | |
getHookContainer () | |
Get a HookContainer suitable for calling LoadExtensionSchemaUpdates. | |
getProvidedNames () | |
Get a list of names of objects that this task promises to provide via $this->getContext()->provide(). | |
getServices () | |
Get the restored services. | |
getVirtualDomains () | |
initBase (ITaskContext $context, string $schemaBasePath) | |
Inject the base class dependencies and configuration. | |
isSkipped () | |
Override this to return true to skip the task. | |
Additional Inherited Members | |
![]() | |
applySourceFile (IMaintainableDatabase $conn, string $relPath) | |
Apply a SQL source file to the database as part of running an installation step. | |
definitelyGetConnection (string $type) | |
Get a database connection, and throw if a connection could not be obtained. | |
getConfigVar (string $name) | |
Get a configuration variable for the wiki being created. | |
getConnection (string $type) | |
Connect to the database for a specified purpose. | |
getContext () | |
Get the execution context. | |
getDatabaseCreator () | |
Get a helper for creating databases. | |
getOption (string $name) | |
Get an installer option value. | |
getSchemaBasePath () | |
Get the absolute base path for SQL schema files. | |
getSqlFilePath (string $filename) | |
Return a path to the DBMS-specific SQL file if it exists, otherwise default SQL file. | |
An installer task which calls a callback function.
Definition at line 13 of file CallbackTask.php.
MediaWiki\Installer\Task\CallbackTask::__construct | ( | $spec | ) |
array | $spec |
Definition at line 31 of file CallbackTask.php.
MediaWiki\Installer\Task\CallbackTask::execute | ( | ) |
Execute the task.
Notes for implementors:
Reimplemented from MediaWiki\Installer\Task\Task.
Definition at line 63 of file CallbackTask.php.
MediaWiki\Installer\Task\CallbackTask::getAliases | ( | ) |
Get alternative names of this task.
These aliases can be used to fulfill dependencies of other tasks.
Reimplemented from MediaWiki\Installer\Task\Task.
Definition at line 51 of file CallbackTask.php.
MediaWiki\Installer\Task\CallbackTask::getDependencies | ( | ) |
Get a list of names or aliases of tasks that must be done prior to this task.
Reimplemented from MediaWiki\Installer\Task\Task.
Definition at line 55 of file CallbackTask.php.
MediaWiki\Installer\Task\CallbackTask::getDescription | ( | ) |
Get a human-readable description of what this task does, for use as a progress message.
This may either be English text or a MessageSpecifier. It is unsafe to use an extension message.
Reimplemented from MediaWiki\Installer\Task\Task.
Definition at line 44 of file CallbackTask.php.
MediaWiki\Installer\Task\CallbackTask::getName | ( | ) |
Get the symbolic name of the task.
Reimplemented from MediaWiki\Installer\Task\Task.
Definition at line 40 of file CallbackTask.php.
MediaWiki\Installer\Task\CallbackTask::isPostInstall | ( | ) |
If this returns true, the task will be scheduled after tasks for which it returns false.
Subclasses can override this to return true for tasks that respond to the successful complete installation of the wiki.
Reimplemented from MediaWiki\Installer\Task\Task.
Definition at line 59 of file CallbackTask.php.