public function delete() { $this->muser->require_access("apikey"); $ids = $this->input->post("ids"); return \service\files::delete($ids); }
function do_delete() { $this->muser->require_access("apikey"); $ids = $this->input->post("ids"); $ret = \service\files::delete($ids); $this->data["errors"] = $ret["errors"]; $this->data["deleted_count"] = $ret["deleted_count"]; $this->data["total_count"] = $ret["total_count"]; $this->load->view('header', $this->data); $this->load->view($this->var->view_dir . '/deleted', $this->data); $this->load->view('footer', $this->data); }