/** * Ziska data poziadavky, nastavi aj predmet aj semester * @param unknown_type $courseID * @return unknown_type */ private function __getCommonData($courseID) { $rooms = new Rooms(); $subjects = new Subjects(); $student_count = $subjects->getStudentCount($courseID); $student_count_info = $subjects->getStudentCountInfo($courseID); $this->set('capacities', $rooms->getCapacities()); $this->set('types', $rooms->getTypes()); $this->set('type_capacity', $rooms->getCapacitiesForTypes()); $this->set('rooms', $rooms->getAll()); // zoradene, len podla nazvu $this->set('roomsByName', $rooms->getAll(true)); $this->set('subject', $subjects->getSubject($courseID)); $this->set('student_count', $student_count['count']); $this->set('student_count_info', $student_count_info); $this->set('course_id', $courseID); $this->set("semester_id", $this->session->read("semester")); // flag blokovania a comment k tomu $this->set('blokovanie_preberania', $this->subjects->isBlockedCopying($courseID)); }