public function displayDisciplineClassesToEnroll($courseId, $disciplineId) { $disciplineData = $this->getDisciplineByCode($disciplineId); $semester = new Semester(); $currentSemester = $semester->getCurrentSemester(); $offer = new Offer(); $classes = $offer->getApprovedOfferListDisciplineClasses($courseId, $currentSemester['id_semester'], $disciplineId); $data = array('courseId' => $courseId, 'disciplineClasses' => $classes, 'disciplineData' => $disciplineData); loadTemplateSafelyByGroup('estudante', 'discipline/discipline_classes_enroll', $data); }