Exemple #1
0
 case "getFacultyNotifications":
     //session_start();
     $faculty1 = new Faculty($_SESSION['USERID']);
     $result = $faculty1->getNotifications($_POST['limit']);
     break;
 case "getAttendanceDetail":
     $course1 = new Course($_POST["courseId"], PRESENT_YEAR, PRESENT_SEM);
     $result = $course1->getDetailDayWiseCourseAttendance($_POST["type"], $_POST["date"]);
     break;
 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";