| 7 database.inc | final public static Database::isActiveConnection() |
| 8 Database.php | final public static Database::isActiveConnection() |
Determines 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.
Return value
TRUE if there is at least one database connection established, FALSE otherwise.
File
- includes/
database/ database.inc, line 1472 - Core systems for the database layer.
Code
final public static function isActiveConnection() {
return !empty(self::$activeKey) && !empty(self::$connections) && !empty(self::$connections[self::$activeKey]);
}
Login or register to post comments