caldavBackend->getCalendarsForUser($this->principalInfo['uri']) as $calendar) { if ($calendar['uri'] === $name) { return new Calendar( $this->caldavBackend, $calendar, $this->l10n, $this->config, $this->logger, ); } } throw new NotFound("Node with name $name could not be found"); } public function getChildren(): array { $objects = []; // Remote users can only have incoming shared calendars so we can skip the rest of a regular // calendar home $calendars = $this->caldavBackend->getCalendarsForUser($this->principalInfo['uri']); foreach ($calendars as $calendar) { $objects[] = new Calendar( $this->caldavBackend, $calendar, $this->l10n, $this->config, $this->logger, ); } return $objects; } }