1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253 |
- <?php
- namespace OCA\DAV\CalDAV;
- use OCP\IConfig;
- use OCP\IL10N;
- use Psr\Log\LoggerInterface;
- use Sabre\DAV\Collection;
- class PublicCalendarRoot extends Collection {
-
- public function __construct(
- protected CalDavBackend $caldavBackend,
- protected IL10N $l10n,
- protected IConfig $config,
- private LoggerInterface $logger,
- ) {
- }
-
- public function getName() {
- return 'public-calendars';
- }
-
- public function getChild($name) {
- $calendar = $this->caldavBackend->getPublicCalendar($name);
- return new PublicCalendar($this->caldavBackend, $calendar, $this->l10n, $this->config, $this->logger);
- }
-
- public function getChildren() {
- return [];
- }
- }
|