Lines Matching refs:allEvents
2893 $allEvents = []; // Track all events to detect patterns
2897 … $processCalendarDir = function($calDir, $fallbackNamespace) use (&$allEvents, &$flaggedSeries) {
2943 if (!isset($allEvents[$groupKey])) {
2944 $allEvents[$groupKey] = [
2954 $allEvents[$groupKey]['dates'][] = $dateKey;
2955 $allEvents[$groupKey]['events'][] = $event;
2957 $allEvents[$groupKey]['hasFlag'] = true;
3013 foreach ($allEvents as $groupKey => $group) {
4373 $allEvents = $this->getRecurringSeriesEvents($newTitle, $newNamespace);
4375 if (count($allEvents) > 1) {
4377 usort($allEvents, function($a, $b) {
4381 $firstDate = new DateTime($allEvents[0]['date']);
4388 for ($i = 0; $i < count($allEvents); $i++) {
4389 $eventDate = new DateTime($allEvents[$i]['date']);
4398 $template = $allEvents[$anchorIndex]['event'];
4401 for ($i = $anchorIndex + 1; $i < count($allEvents); $i++) {
4402 $entry = $allEvents[$i];
4430 $futureCount = count($allEvents) - $anchorIndex - 1;
6246 $allEvents = [];
6249 $this->collectAllEvents($metaDir, '', $allEvents);
6264 foreach ($allEvents as $namespace => $files) {
6283 private function collectAllEvents($dir, $namespace, &$allEvents) { argument
6296 if (!isset($allEvents[$namespace])) {
6297 $allEvents[$namespace] = [];
6304 $allEvents[$namespace][$filename] = $data;
6310 $this->collectAllEvents($path . '/', $newNamespace, $allEvents);