private static function search_connections() { foreach (Rhaco::constants("db.Db@") as $key => $dsn) { if (isset($key[6])) { self::connection(substr($key, 6)); } } if (empty(self::$SESSION)) { throw new Exception("undef connection"); } }