case "getCsv": $faculty1 = new Faculty($_SESSION['USERID']); $faculty1->getCsv($_POST['courseId'], $_POST['date'], $_POST['type']); break; case "getFacultyTimetable": $faculty1 = new Faculty($_SESSION['USERID']); $result = $faculty1->getFacultyPermanentTimeTable(); break; /****End of Faculty Profile APIs*****/ /****Genral APIs*****/ /****End of Faculty Profile APIs*****/ /****Genral APIs*****/ case "loadCourse": // $course1 = new Course($_POST["courseId"], $_POST["year"], $_POST["sem"]); $course1 = new course($_POST["courseId"], PRESENT_YEAR, PRESENT_SEM); $result["course"] = $course1->getDetail('ALL'); break; case "logout": //session_start(); session_unset(); session_destroy(); $result["msg"] = "true"; break; case "getFiles": //session_start(); $course1 = new Course($_POST["courseId"], PRESENT_YEAR, PRESENT_SEM); $result = $course1->getFiles(); if (checkIfFacultyOfCourse($_SESSION['USERID'], $_POST["courseId"], PRESENT_YEAR, PRESENT_SEM)) { $result[0]["delete"] = "true"; } else { $result[0]["delete"] = "false";