final public static function Database::getConnectionInfo

cis7 database.inc final public static Database::getConnectionInfo($key = 'default')
cle7 database.inc final public static Database::getConnectionInfo($key = 'default')
elmsmedia7 database.inc final public static Database::getConnectionInfo($key = 'default')
icor7 database.inc final public static Database::getConnectionInfo($key = 'default')
meedjum_blog7 database.inc final public static Database::getConnectionInfo($key = 'default')
mooc7 database.inc final public static Database::getConnectionInfo($key = 'default')

Gets information on the specified database connection.

Parameters

$connection: The connection key for which we want information.

6 calls to Database::getConnectionInfo()
DatabaseSchema_mysql::getPrefixInfo in includes/database/mysql/schema.inc
Get information about the table and database name from the prefix.
db_ignore_slave in includes/database/database.inc
Sets a session variable specifying the lag time for ignoring a slave server.
DrupalUnitTestCase::setUp in modules/simpletest/drupal_web_test_case.php
Sets up unit test environment.
DrupalWebTestCase::changeDatabasePrefix in modules/simpletest/drupal_web_test_case.php
Changes the database connection to the prefixed one.
DrupalWebTestCase::tearDown in modules/simpletest/drupal_web_test_case.php
Delete created files and temporary files directory, delete the tables created by setUp(), and reset the database prefix.

... See full list

File

includes/database/database.inc, line 1593
Core systems for the database layer.

Class

Database
Primary front-controller for the database system.

Code

final public static function getConnectionInfo($key = 'default') {
  if (empty(self::$databaseInfo)) {
    self::parseConnectionInfo();
  }

  if (!empty(self::$databaseInfo[$key])) {
    return self::$databaseInfo[$key];
  }
}
Error | ELMSLN API

Error

×

Error message

  • Warning: Cannot modify header information - headers already sent by (output started at /var/www/html/elmsln_community/api.elmsln.org/includes/common.inc:2791) in drupal_send_headers() (line 1499 of /var/www/html/elmsln_community/api.elmsln.org/includes/bootstrap.inc).
  • Error: Call to undefined function apc_delete() in DrupalAPCCache->clear() (line 289 of /var/www/html/elmsln_community/api.elmsln.org/sites/all/modules/apc/drupal_apc_cache.inc).
The website encountered an unexpected error. Please try again later.