null, 'sort' => 'ASC')) { $this->db->select($field); if (!is_null($order['field'])) { $this->db->order_by($order['field'], $order['sort']); } return $this->db->get_where($this->table_name, $where, $limit, $offset); } public function add($data) { return $this->db->insert($this->table_name, $data); } public function edit($data, $param = array()) { return $this->db->update($this->table_name, $data, $param); } public function delete($param = array()) { return $this->db->delete($this->table_name, $param); } public function truncate() { return $this->db->truncate($this->table_name); } }