1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283 |
- <?php
- namespace OCA\DAV\CalDAV;
- use OCP\IConfig;
- use OCP\IL10N;
- use Psr\Log\LoggerInterface;
- use Sabre\DAV\Collection;
- class PublicCalendarRoot extends Collection {
-
- protected $caldavBackend;
-
- protected $l10n;
-
- protected $config;
-
- private $logger;
-
- public function __construct(CalDavBackend $caldavBackend, IL10N $l10n,
- IConfig $config, LoggerInterface $logger) {
- $this->caldavBackend = $caldavBackend;
- $this->l10n = $l10n;
- $this->config = $config;
- $this->logger = $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 [];
- }
- }
|