Example #1
0
 /**
  * construct
  * @param string $name the name of the collection
  */
 function __construct($name)
 {
     $this->collectionName = strtolower($name);
     $dbConnect = Config::getDbConf('MongoDB');
     $uri = 'mongodb://' . $dbConnect['host'] . ':' . $dbConnect['port'];
     $this->manager = new Manager($uri);
     $this->client = new Client($uri);
 }