示例#1
0
 /**
  * Returns the database object identified by $db_name.
  *
  * Subsequent calls to this function with the same parameter will return the same database
  * instance, instead of creating a new one.
  *
  * @param string $db_name
  *
  * @return GlueDB_Database
  */
 public static function db($db_name = GlueDB_Database::DEFAULTDB)
 {
     return GlueDB_Database::get($db_name);
 }