load->model('Data_Dump_Model','Data_Dump_Model'); } ### Request the Details For XL-Data-Dump. public function saveDatadumpRequest_post(){ $records = $this->post(); if(!empty($records)){ $id = $this->Data_Dump_Model->saveRecords($records, DATADUMPREQUEST); if ($id) { $data['dataStatus'] = true; $data['status'] = REST_Controller::HTTP_OK; $data['records'] = $id; } else { $data['dataStatus'] = false; $data['status'] = REST_Controller::HTTP_NOT_MODIFIED; $data['msg'] = 'Something went wrong..! Try Later...!'; } }else{ $data['dataStatus'] = false; $data['status'] = REST_Controller::HTTP_NOT_MODIFIED; $data['msg'] = 'Parameter are Empty..! Try Later...!'; } $this->response($data, REST_Controller::HTTP_OK); } public function getDatadumpRequestList_get(){ $result_data = $this->Data_Dump_Model->getDataDumpRequestList(); if (count($result_data)) { $data['dataStatus'] = true; $data['status'] = REST_Controller::HTTP_OK; $data['records'] = $result_data; $this->response($data, REST_Controller::HTTP_OK); } else { $data['dataStatus'] = false; $data['status'] = REST_Controller::HTTP_NO_CONTENT; $this->response($data, REST_Controller::HTTP_OK); } } }// Class Closed Here.