/** * Returns the name of the default database. * * @return string Name of the default DB */ public static function getDefaultDB() { if (self::$configuration === null) { return self::DEFAULT_NAME; } elseif (self::$defaultDBName === null) { // Determine default database name. self::$defaultDBName = isset(self::$configuration['datasources']['default']) ? self::$configuration['datasources']['default'] : self::DEFAULT_NAME; } return self::$defaultDBName; }