19 declare(strict_types=1);
42 $box_entries = $this->
shuffle($box_entries);
57 foreach ($box_entries as $entry) {
58 $entry_day = substr($entry->getLastAccess(), 0, 10);
60 || $entry_day === $tmp_day
62 $tmp_entries[$i][] = $entry;
64 $tmp_entries[++$i][] = $entry;
66 $tmp_day = $entry_day;
71 foreach ($tmp_entries as $entries_per_day) {
72 $entries_per_day = $this->
shuffle($entries_per_day);
73 foreach ($entries_per_day as $entry) {
81 protected function shuffle(array $entries): array
shuffleEntries(array $box_entries)
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
shuffleEntriesWithEqualDay(array $box_entries)