course details changes done

This commit is contained in:
gandhimathi 2018-01-19 18:19:15 +05:30
parent e956a33b0c
commit ceab8e4200

View File

@ -39,6 +39,7 @@ class Fees_Status_Controller extends REST_Controller {
$this->methods['getUniversityCourseForFees_post']['limit'] = 1000; // 1000 requests per hour per user/key
$this->methods['getFeesStructureAssign_post']['limit'] = 1000; // 1000 requests per hour per user/key
$this->methods['setFeesForStudent_post']['limit'] = 1000; // 1000 requests per hour per user/key
$this->methods['sendStudentNotification_post']['limit'] = 2000; // 2000 requests per hour per user/key
// load the model
@ -258,6 +259,31 @@ class Fees_Status_Controller extends REST_Controller {
}
/*
* send notification for student
* created by kms
* */
public function sendStudentNotification_post(){
$sendMessage = $this->Fees_model->studentNotification();
if ($sendMessage)
{
$this->response([
'message' => 'Done!',
'status' => REST_Controller::HTTP_OK
], REST_Controller::HTTP_OK); // NOT_FOUND (404) 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
}
}