Ejemplo n.º 1
0
 public function getDBProfilingData()
 {
     return $this->connection->getProfilingData(array($this->dbName));
 }
Ejemplo n.º 2
0
 /**
  * Setup a new Mongo database connection
  * @param string $server Mongo connection string, eg. mongodb://localhost:27017
  * @param array $options Refer to http://www.php.net/manual/en/mongo.construct.php
  * @param int $debugProfileLevel Default is 0 (Off)
  */
 public static function setup($server, $options = null, $debugProfileLevel = 0)
 {
     self::$mongo = new DooMongo($server, $options, $debugProfileLevel);
 }