示例#1
0
 public function __construct($collection)
 {
     $this->_mongo = new MongoConnection();
     $this->_mongo->getCredentialsFromConfig(ConfigUtil::getConfig());
     $this->_mongo->open();
     $this->_mongo->setCollection($collection);
 }