/** @Decorated */ public function test_save_form() { $pro = new Process(); $pro->setProcessID($this->input->post("ProcessID")); $pro->setGroupID($this->input->post("GroupID")); $pro->setProcessName($this->input->post("ProcessName")); $this->load->model("process_manager"); $this->process_manager->save($pro); //echo "OK"; }
/** @Decorated */ public function save_object($object_name) { if ($object_name == "Process") { $pro = new Process(); $pro->setProcessID($this->input->post("ProcessID")); $pro->setGroupID($this->input->post("GroupID")); $pro->setProcessName($this->input->post("ProcessName")); $this->load->model("process_manager"); $this->process_manager->save($pro); } $this->output->set_output("Save " . $object_name . " successfully!"); }