Lines Matching refs:allEvents
2989 $allEvents = []; // Track all events to detect patterns
2993 … $processCalendarDir = function($calDir, $fallbackNamespace) use (&$allEvents, &$flaggedSeries) {
3039 if (!isset($allEvents[$groupKey])) {
3040 $allEvents[$groupKey] = [
3050 $allEvents[$groupKey]['dates'][] = $dateKey;
3051 $allEvents[$groupKey]['events'][] = $event;
3053 $allEvents[$groupKey]['hasFlag'] = true;
3109 foreach ($allEvents as $groupKey => $group) {
4469 $allEvents = $this->getRecurringSeriesEvents($newTitle, $newNamespace);
4471 if (count($allEvents) > 1) {
4473 usort($allEvents, function($a, $b) {
4477 $firstDate = new DateTime($allEvents[0]['date']);
4484 for ($i = 0; $i < count($allEvents); $i++) {
4485 $eventDate = new DateTime($allEvents[$i]['date']);
4494 $template = $allEvents[$anchorIndex]['event'];
4497 for ($i = $anchorIndex + 1; $i < count($allEvents); $i++) {
4498 $entry = $allEvents[$i];
4526 $futureCount = count($allEvents) - $anchorIndex - 1;
6342 $allEvents = [];
6345 $this->collectAllEvents($metaDir, '', $allEvents);
6360 foreach ($allEvents as $namespace => $files) {
6379 private function collectAllEvents($dir, $namespace, &$allEvents) { argument
6392 if (!isset($allEvents[$namespace])) {
6393 $allEvents[$namespace] = [];
6400 $allEvents[$namespace][$filename] = $data;
6406 $this->collectAllEvents($path . '/', $newNamespace, $allEvents);