fix clear and copy week
This commit is contained in:
@@ -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];
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user