course details changes done

This commit is contained in:
gandhimathi 2018-02-08 15:34:31 +05:30
parent 80c271ebe9
commit 0d7bbac5b4

View File

@ -58,7 +58,10 @@ class Course_Controller extends REST_Controller {
if($jsonLateralFeesData['FeesAmount'] != 0 AND $jsonLateralFeesData['FeesAmount'] != '' AND $jsonLateralFeesData['FeesAmount'] != 'undefined'){
array_push($jsonSemFeesData,$jsonLateralFeesData);
}
$courseDetails = $this->course_model->addCourse($details,$jsonSemFeesData);// Check if the users data store contains users (in case the database result returns NULL)
// get subject details
$subjectDetails=$this->post('subjects');
$courseDetails = $this->course_model->addCourse($details,$jsonSemFeesData,$subjectDetails);// Check if the users data store contains users (in case the database result returns NULL)
if ($courseDetails)
{
$courseDetails['status'] = REST_Controller::HTTP_OK;
@ -104,8 +107,8 @@ class Course_Controller extends REST_Controller {
}
public function getCourseUnivFeesDetails_post() {
$requestedBy = $this->post('requestedBy');
$getCourseUnivFee = $this->course_model->getCourseUnivFeesTypes($requestedBy);
$requestedBy = $this->post('requestedBy');
$getCourseUnivFee = $this->course_model->getCourseUnivFeesTypes($requestedBy);
if ($getCourseUnivFee)
{
@ -158,7 +161,14 @@ class Course_Controller extends REST_Controller {
}
$updateDetails = $this->course_model->updateCourse($details,$jsonSemFeesData,$existCourseID);// Check if the users data store contains users (in case the database result returns NULL)
// update course subject details
$subjectDetails['UniversityID'] = $this->post('universityID');
$subjectDetails['CourseID'] = $this->post('courseID');
$subjectDetails['Subjects'] = $this->post('subjects');
$subjectDetails['UpdatedBy'] = $this->post('updatedBy');
$subjectDetails['UpdatedOn'] = $now->format('Y-m-d H:i:s');
$updateDetails = $this->course_model->updateCourse($details,$jsonSemFeesData,$subjectDetails);// Check if the users data store contains users (in case the database result returns NULL)
if ($updateDetails)
{
$updateDetails['status'] = REST_Controller::HTTP_OK;