示例#1
0
 public function __construct(Db $db, $closure = null, $model = false)
 {
     $this->query = $db->query;
     $this->closure = $closure;
     $this->store = $db->store;
     $this->table = $db->table;
     $this->database = $db->db;
     $this->store = $db->store;
     $this->age = $db->getAge();
     unset($this->count);
     $this->cursor = mysqli_query($this->store->db, $this->query);
     if (is_bool($this->cursor)) {
         throw new Exception($this->store->db->error);
     }
     $this->count = $this->cursor->num_rows;
     $this->model = $model;
 }