Tasks deprecated
class Tasks extends Tasks (View source)
deprecated
Specifies installation tasks for SQLite databases.
Constants
| SQLITE_MINIMUM_VERSION |
Minimum required SQLite version. Use to build sqlite library with json1 option for JSON datatype support. |
Properties
| protected | $pdoDriver | {@inheritdoc} | from Tasks |
| protected array | $tasks | Structure that describes each task to run. |
from Tasks |
| protected array | $results | Results from tasks. |
from Tasks |
Methods
Runs database tasks and tests to see if Drupal can run on the database.
Checks engine version requirements for the status report.
Ensures the database can execute commands with the current user.
Validates driver specific configuration settings.
Details
in
Tasks at line 89
protected bool
hasPdoDriver()
Ensure the PDO driver is supported by the version of PHP in use.
in
Tasks at line 96
protected
fail($message)
Asserts test as failed.
in
Tasks at line 103
protected
pass($message)
Asserts test as a pass.
in
Tasks at line 113
bool
installable()
Checks whether Drupal is installable on the database.
in
Tasks at line 31
string
name()
Returns the human-readable name of the driver.
in
Tasks at line 38
string|null
minimumVersion()
Returns the minimum required version of the engine.
in
Tasks at line 142
string[]
runTasks()
Runs database tasks and tests to see if Drupal can run on the database.
in
Tasks at line 171
final TranslatableMarkup[]
engineVersionRequirementsCheck()
Checks engine version requirements for the status report.
This method is called during runtime and update requirements checks.
in
Tasks at line 62
protected bool
connect()
Checks if we can connect to the database.
in
Tasks at line 200
protected
runTestQuery($query, $pass, $fail, $fatal = FALSE)
Ensures the database can execute commands with the current user.
in
Tasks at line 214
protected
checkEngineVersion()
Checks the engine version.
in
Tasks at line 45
array
getFormOptions(array $database)
Returns driver specific configuration options.
in
Tasks at line 338
TranslatableMarkup[]
validateDatabaseSettings(array $database)
Validates driver specific configuration settings.
Checks to ensure correct basic database settings and that a proper connection to the database can be established.
in
Tasks at line 364
protected TranslatableMarkup
t(string $string, array $args = [], array $options = [])
Translates a string to the current language or to a given language.
in
Tasks at line 375
protected bool
isConnectionActive()
Determines if there is an active connection.
in
Tasks at line 385
protected Connection
getConnection()
Returns the database connection.