Tasks::hasPdoDriver

protected Tasks::hasPdoDriver() Ensure the PDO driver is supported by the version of PHP in use. File core/lib/Drupal/Core/Database/Install/Tasks.php, line 85 Class Tasks Database installer structure. Namespace Drupal\Core\Database\Install Code protected function hasPdoDriver() { return in_array($this->pdoDriver, \PDO::getAvailableDrivers()); }

Tasks::fail

protected Tasks::fail($message) Assert test as failed. File core/lib/Drupal/Core/Database/Install/Tasks.php, line 92 Class Tasks Database installer structure. Namespace Drupal\Core\Database\Install Code protected function fail($message) { $this->results['fail'][] = $message; }

Tasks::connect

protected Tasks::connect() Check if we can connect to the database. Overrides Tasks::connect File core/lib/Drupal/Core/Database/Driver/mysql/Install/Tasks.php, line 59 Class Tasks Specifies installation tasks for MySQL and equivalent databases. Namespace Drupal\Core\Database\Driver\mysql\Install Code protected function connect() { try { // This doesn't actually test the connection. db_set_active(); // Now actually do a check. try { Database::getConnection();

Tasks::getFormOptions

public Tasks::getFormOptions(array $database) Return driver specific configuration options. Parameters $database: An array of driver specific configuration options. Return value The options form array. Overrides Tasks::getFormOptions File core/lib/Drupal/Core/Database/Driver/pgsql/Install/Tasks.php, line 282 Class Tasks Specifies installation tasks for PostgreSQL databases. Namespace Drupal\Core\Database\Driver\pgsql\Install Code public function getFormOptions(array $database) { $f

Tasks::ensureInnoDbAvailable

Tasks::ensureInnoDbAvailable() Ensure that InnoDB is available. File core/lib/Drupal/Core/Database/Driver/mysql/Install/Tasks.php, line 143 Class Tasks Specifies installation tasks for MySQL and equivalent databases. Namespace Drupal\Core\Database\Driver\mysql\Install Code function ensureInnoDbAvailable() { $engines = Database::getConnection()->query('SHOW ENGINES')->fetchAllKeyed(); if (isset($engines['MyISAM']) && $engines['MyISAM'] == 'DEFAULT' && !isset($e

Tasks::connect

protected Tasks::connect() Check if we can connect to the database. Overrides Tasks::connect File core/lib/Drupal/Core/Database/Driver/pgsql/Install/Tasks.php, line 59 Class Tasks Specifies installation tasks for PostgreSQL databases. Namespace Drupal\Core\Database\Driver\pgsql\Install Code protected function connect() { try { // This doesn't actually test the connection. db_set_active(); // Now actually do a check. Database::getConnection(); $this->pass('Drupa

Tasks::getFormOptions

public Tasks::getFormOptions(array $database) Return driver specific configuration options. Parameters $database: An array of driver specific configuration options. Return value The options form array. File core/lib/Drupal/Core/Database/Install/Tasks.php, line 204 Class Tasks Database installer structure. Namespace Drupal\Core\Database\Install Code public function getFormOptions(array $database) { $form['database'] = array( '#type' => 'textfield', '#title' => t('Datab

Tasks::connect

protected Tasks::connect() Check if we can connect to the database. Overrides Tasks::connect File core/lib/Drupal/Core/Database/Driver/sqlite/Install/Tasks.php, line 54 Class Tasks Specifies installation tasks for SQLite databases. Namespace Drupal\Core\Database\Driver\sqlite\Install Code protected function connect() { try { // This doesn't actually test the connection. db_set_active(); // Now actually do a check. Database::getConnection(); $this->pass('Drupal

Tasks::checkStandardConformingStrings

public Tasks::checkStandardConformingStrings() Ensures standard_conforming_strings setting is 'on'. When standard_conforming_strings setting is 'on' string literals ('...') treat backslashes literally, as specified in the SQL standard. This allows Drupal to convert between bytea, text and varchar columns. File core/lib/Drupal/Core/Database/Driver/pgsql/Install/Tasks.php, line 192 Class Tasks Specifies installation tasks for PostgreSQL databases. Namespace Drupal\Core\Database\Driver\pgs

Tasks::checkStandardConformingStringsSuccess

protected Tasks::checkStandardConformingStringsSuccess() Verifies the standard_conforming_strings setting. File core/lib/Drupal/Core/Database/Driver/pgsql/Install/Tasks.php, line 232 Class Tasks Specifies installation tasks for PostgreSQL databases. Namespace Drupal\Core\Database\Driver\pgsql\Install Code protected function checkStandardConformingStringsSuccess() { $standard_conforming_strings = Database::getConnection()->query("SHOW standard_conforming_strings")->fetchField();