public function del($id, $where = null) { if ($where == null) { $where = $this->primary; } return $this->db->delete($id, $this->table, $where); }
private function _filter_expire($rs) { if ($rs['expire'] != 0 and $rs['expire'] < time()) { $this->model->del($rs['id']); return false; } else { return $rs['cvalue']; } }