diff options
| author | Moritz Strohm <strohm@data-quest.de> | 2024-08-28 17:42:07 +0200 |
|---|---|---|
| committer | Moritz Strohm <strohm@data-quest.de> | 2024-09-02 09:59:18 +0200 |
| commit | 2063199cecf8dd121a85d1fc667889a02f47a03f (patch) | |
| tree | e275c26a65ead5f91d9e877f44f83f0feb8ef95d /lib/models | |
| parent | 6da567cfc497b6a03f71680a9406306d1e8216a3 (diff) | |
fixed rebase errortic-04421
Diffstat (limited to 'lib/models')
| -rw-r--r-- | lib/models/Course.php | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/lib/models/Course.php b/lib/models/Course.php index 2341e1a..614daa7 100644 --- a/lib/models/Course.php +++ b/lib/models/Course.php @@ -1869,18 +1869,18 @@ class Course extends SimpleORMap implements Range, PrivacyObject, StudipItem, Fe * @param bool $with_cancelled_dates Whether to include cancelled dates (true) or not (false). * Defaults to false. * - * @return CourseDateCollection A collection of irregular and regular course dates. + * @return CourseDateList A collection of irregular and regular course dates. * * @throws \Studip\Exception In case that the end semester is before the start semester. */ - public function getAllDatesInSemester(?Semester $start_semester = null, ?Semester $end_semester = null, bool $with_cancelled_dates = false) : CourseDateCollection + public function getAllDatesInSemester(?Semester $start_semester = null, ?Semester $end_semester = null, bool $with_cancelled_dates = false) : CourseDateList { $all_dates_of_course = false; if (!$start_semester && !$end_semester) { $all_dates_of_course = true; } if ($all_dates_of_course) { - $collection = new CourseDateCollection(); + $collection = new CourseDateList(); foreach ($this->cycles as $regular_date) { $collection->addRegularDate($regular_date); } @@ -1897,7 +1897,7 @@ class Course extends SimpleORMap implements Range, PrivacyObject, StudipItem, Fe return $collection; } else { if (!$start_semester) { - return new CourseDateCollection(); + return new CourseDateList(); } $beginning = $start_semester->beginn; $end = $start_semester->ende; @@ -1911,7 +1911,7 @@ class Course extends SimpleORMap implements Range, PrivacyObject, StudipItem, Fe $end = $end_semester->ende; } - $collection = new CourseDateCollection(); + $collection = new CourseDateList(); SeminarCycleDate::findEachBySQL( function ($date) use ($collection) { |
