Ejemplo n.º 1
0
 /**
  *	Instantiate class
  *	@return void
  *	@param $db object
  *	@param $collection string
  *	@param $fields array
  **/
 function __construct(\DB\Mongo $db, $collection, $fields = NULL)
 {
     $this->db = $db;
     $this->collection = $db->selectcollection($collection);
     $this->fields = $fields;
     $this->reset();
 }
Ejemplo n.º 2
0
 /**
  *	Instantiate class
  *	@return void
  *	@param $db object
  *	@param $collection string
  **/
 function __construct(\DB\Mongo $db, $collection)
 {
     $this->db = $db;
     $this->collection = $db->selectcollection($collection);
     $this->reset();
 }
Ejemplo n.º 3
0
 function log()
 {
     $log = parent::log();
     return str_replace("\n", "<br>", $log);
 }