course details changes done

This commit is contained in:
gandhimathi 2018-03-01 16:06:05 +05:30
parent b8e23b7784
commit 6c9c62fab0

View File

@ -39,7 +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 // $this->methods['sendStudentNotification_post']['limit'] = 2000; // 2000 requests per hour per user/key
// load the model // load the model
@ -55,14 +55,14 @@ class Fees_Status_Controller extends REST_Controller {
* */ * */
public function getStudentList_post() public function getStudentList_post()
{ {
$search['requestedBy'] = $this->post('requestedtBy'); $search['requestedBy'] = $this->post('requestedtBy');
$search['Firstname'] = $this->post('studentName'); $search['Firstname'] = $this->post('studentName');
$search['MobileNumber'] = $this->post('mobileNumber'); $search['MobileNumber'] = $this->post('mobileNumber');
$search['UniversityID'] = $this->post('university'); $search['UniversityID'] = $this->post('university');
$search['CourseID'] = $this->post('course'); $search['CourseID'] = $this->post('course');
$search['requestedDept'] = $this->post('requestedDept'); $search['requestedDept'] = $this->post('requestedDept');
$search['requestedBranch'] = $this->post('branchId'); $search['requestedBranch'] = $this->post('branchId');
$getStudentDetails = $this->Fees_model->getStudentList($search); $getStudentDetails = $this->Fees_model->getStudentList($search);
if ($getStudentDetails) if ($getStudentDetails)
{ {
$getStudentDetails['status'] = REST_Controller::HTTP_OK; $getStudentDetails['status'] = REST_Controller::HTTP_OK;
@ -121,15 +121,15 @@ class Fees_Status_Controller extends REST_Controller {
$now->setTimezone(new DateTimezone('Asia/Kolkata')); $now->setTimezone(new DateTimezone('Asia/Kolkata'));
/*for track purpose*/ /*for track purpose*/
/* $trackDetails['MobileNumber'] = $this->post('mobileNumber'); /* $trackDetails['MobileNumber'] = $this->post('mobileNumber');
$trackDetails['LeadName'] = $this->post('studentName'); $trackDetails['LeadName'] = $this->post('studentName');
$trackDetails['University'] = $this->post('university'); $trackDetails['University'] = $this->post('university');
$trackDetails['Course'] = $this->post('course'); $trackDetails['Course'] = $this->post('course');
$trackDetails['StatusCode'] = $this->post('statusCode'); $trackDetails['StatusCode'] = $this->post('statusCode');
$trackDetails['FollowupOn'] = $now->format('d-m-Y'); $trackDetails['FollowupOn'] = $now->format('d-m-Y');
$trackDetails['FollowupComments'] = $this->post('commentsForStudent'); $trackDetails['FollowupComments'] = $this->post('commentsForStudent');
$trackDetails['CreatedBy'] = $this->post('createdBy'); $trackDetails['CreatedBy'] = $this->post('createdBy');
$trackDetails['CreatedOn'] = $now->format('Y-m-d H:i:s');*/ $trackDetails['CreatedOn'] = $now->format('Y-m-d H:i:s');*/
/*track array end*/ /*track array end*/
@ -273,18 +273,18 @@ class Fees_Status_Controller extends REST_Controller {
if ($sendMessage) if ($sendMessage)
{ {
echo "Success"; echo "Success";
/* $this->response([ /* $this->response([
'message' => 'Done!', 'message' => 'Done!',
'status' => REST_Controller::HTTP_OK 'status' => REST_Controller::HTTP_OK
], REST_Controller::HTTP_OK); // NOT_FOUND (404) being the HTTP response code*/ ], REST_Controller::HTTP_OK); // NOT_FOUND (404) being the HTTP response code*/
} }
else else
{ {
// Set the response and exit // Set the response and exit
/* $this->response([ /* $this->response([
'message' => 'No records found!', 'message' => 'No records found!',
'status' => REST_Controller::HTTP_NOT_FOUND 'status' => REST_Controller::HTTP_NOT_FOUND
], REST_Controller::HTTP_NOT_FOUND); // NOT_FOUND (404) being the HTTP response code*/ ], REST_Controller::HTTP_NOT_FOUND); // NOT_FOUND (404) being the HTTP response code*/
} }
} }