コード例 #1
0
ファイル: app_test.php プロジェクト: pollaeng/gwt-php-service
 /** @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";
 }
コード例 #2
0
 /** @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!");
 }