public function DatabaseConnection::setKey

public DatabaseConnection::setKey($key)

Tells this connection object what its key is.

Parameters

$target: The key this connection is for.

File

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

Class

DatabaseConnection
Base Database API class.

Code

public function setKey($key) {
  if (!isset($this->key)) {
    $this->key = $key;
  }
}

© 2001–2016 by the original authors
Licensed under the GNU General Public License, version 2 and later.
Drupal is a registered trademark of Dries Buytaert.
https://api.drupal.org/api/drupal/includes!database!database.inc/function/DatabaseConnection::setKey/7.x