public static function update_service_points($data_array)
 {
     $o = new service_points();
     $o->fromArray($data_array);
     $o->save();
     return TRUE;
 }
Example #2
0
 public function update_service_point()
 {
     //security check
     if ($this->input->post('id')) {
         $service_point_id = $this->input->post('id');
         $service_point_name = $this->input->post('name');
         $service_status = $this->input->post('status');
         $service_for_all_facilities = $this->input->post('all_facilities');
         service_points::edit_service_point($service_point_id, $service_point_name, $service_for_all_facilities, $this->session->userdata('user_id'), $service_status);
         $this->session->set_flashdata('system_success_message', "service points Have Been Updated");
         redirect('issues/add_service_points');
     }
     redirect(home);
 }