course details changes done

This commit is contained in:
gandhimathi 2017-12-18 12:52:00 +05:30
parent 73208a8e0e
commit b60e8d8261

View File

@ -36,6 +36,7 @@ class Fees_Status_Controller extends REST_Controller {
$this->methods['getStudentList_delete']['limit'] = 50; // 50 requests per hour per user/key
$this->methods['getFeesStructure_post']['limit'] = 1000; // 1000 requests per hour per user/key
$this->methods['updateFeesDetails_post']['limit'] = 1000; // 1000 requests per hour per user/key
$this->methods['getUniversityCourseForFees_post']['limit'] = 1000; // 1000 requests per hour per user/key
// load the model
$this->load->model('Fees_status_model', 'Fees_model');
@ -52,6 +53,8 @@ class Fees_Status_Controller extends REST_Controller {
$search['requestedBy'] = $this->post('requestedtBy');
$search['Firstname'] = $this->post('studentName');
$search['MobileNumber'] = $this->post('mobileNumber');
$search['UniversityID'] = $this->post('university');
$search['CourseID'] = $this->post('course');
$getStudentDetails = $this->Fees_model->getStudentList($search);
if ($getStudentDetails)
{
@ -147,6 +150,32 @@ class Fees_Status_Controller extends REST_Controller {
}
/*
* get university and course details for fees update
* created by kms
* */
public function getUniversityCourseForFees_post()
{
$getUnivDetails = $this->Fees_model->getUniversityDetails();
if ($getUnivDetails)
{
$getUnivDetails['status'] = REST_Controller::HTTP_OK;
// Set the response and exit
$this->response($getUnivDetails, REST_Controller::HTTP_OK); // OK (200) being the HTTP response code
}
else
{
// Set the response and exit
$this->response([
'message' => 'No records found!',
'status' => REST_Controller::HTTP_NOT_FOUND
], REST_Controller::HTTP_NOT_FOUND); // NOT_FOUND (404) being the HTTP response code
}
}
}