fix clear and copy week

This commit is contained in:
2019-11-05 16:58:25 +01:00
committed by Roland Schneider
parent 9c0e2a56ee
commit 2c5db234ce
19 changed files with 692 additions and 142 deletions

View File

@@ -29,4 +29,16 @@ class TimeTableMonth
]);
}
public function getAllEvents(){
$events = [];
foreach ($this->days as $day){
$events = array_merge($events,$day->events);
}
return $events;
}
public function getWeekByIndex($index) {
return array_values($this->weeks)[$index];
}
}