course details changes done
This commit is contained in:
parent
e956a33b0c
commit
ceab8e4200
@ -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['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['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['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
|
// 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
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user