| Versionen | |
|---|---|
| drupal7 | final public static Database::isActiveConnection() |
Determine if there is an active connection.
Note that this method will return FALSE if no connection has been established yet, even if one could be.
TRUE if there is at least one database connection established, FALSE otherwise.
includes/
<?php
final public static function isActiveConnection() {
return !empty(self::$activeKey) && !empty(self::$connections) && !empty(self::$connections[self::$activeKey]);
}
?>
Kommentare
Kommentar hinzufügen