/** * 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(); }
/** * 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(); }
function log() { $log = parent::log(); return str_replace("\n", "<br>", $log); }