Exemplo n.º 1
0
 /**
  * Get the MongoDB database object.
  */
 public static function get_database()
 {
     return MongoManager::get_connection()->{conf('Mongo', 'name')};
 }
Exemplo n.º 2
0
 /**
  * Get the MongoDB database object.
  */
 public static function get_database()
 {
     $conn = MongoManager::get_connection();
     if (!$conn) {
         return false;
     }
     return $conn->{conf('Mongo', 'name')};
 }