foreach ($course_collection as $course): $teachers = CourseMember::findByCourseAndStatus($course['seminar_id'], 'dozent'); $dozenten = SimpleCollection::createFromArray($teachers)->map(function (CourseMember $teacher) { return $teacher->getUserFullname('no_title'); }); $mvv_pathes = []; if ($with_modules) { $trail_classes = ['Modulteil', 'StgteilabschnittModul', 'StgteilAbschnitt', 'StgteilVersion']; $mvv_object_pathes = MvvCourse::get($course['seminar_id'])->getTrails($trail_classes); if ($mvv_object_pathes) { foreach ($mvv_object_pathes as $mvv_object_path) { // show only complete pathes if (count($mvv_object_path) === 4) { $mvv_object_names = []; $modul_id = ''; foreach ($mvv_object_path as $mvv_object) { if ($mvv_object instanceof StgteilabschnittModul) { $modul_id = $mvv_object->modul_id; } $mvv_object_names[] = $mvv_object->getDisplayName(); } $mvv_pathes[] = [$modul_id => $mvv_object_names]; } } } } $mvv_pathes = array_map(function ($path) { return implode(' > ', reset($path)); }, $mvv_pathes); $mvv_pathes = array_unique($mvv_pathes); sort($mvv_pathes); $sem_class = $course['sem_class']; ?>
| = _('Nr.') ?> | = htmlReady($course['veranstaltungsnummer'])?> |
|---|---|
| = _('Name') ?> | = htmlReady($course['name']) ?> |
| = _('Untertitel') ?> | = htmlReady($course['untertitel']) ?> |
| = _('Lehrende') ?> |
|
| = _('Module') ?> |
|