Exemplo n.º 1
0
 public function student_offerList($courseId)
 {
     $semester = new Semester();
     $currentSemester = $semester->getCurrentSemester();
     $course = new Course();
     $courseData = $course->getCourseById($courseId);
     $offer = new Offer();
     $offerListDisciplines = $offer->getCourseApprovedOfferListDisciplines($courseId, $currentSemester['id_semester']);
     $data = array('currentSemester' => $currentSemester, 'course' => $courseData, 'offerListDisciplines' => $offerListDisciplines);
     loadTemplateSafelyByGroup("estudante", 'usuario/student_offer_list', $data);
 }