|
@@ 67-69 (lines=3) @@
|
| 64 |
|
} |
| 65 |
|
|
| 66 |
|
// We're adding a notifications node, if it's supported by the backend. |
| 67 |
|
if ($this->caldavBackend instanceof NotificationSupport) { |
| 68 |
|
$objects[] = new \Sabre\CalDAV\Notifications\Collection($this->caldavBackend, $this->principalInfo['uri']); |
| 69 |
|
} |
| 70 |
|
|
| 71 |
|
// If the backend supports subscriptions, we'll add those as well, |
| 72 |
|
if ($this->caldavBackend instanceof SubscriptionSupport) { |
|
@@ 92-94 (lines=3) @@
|
| 89 |
|
if ($name === 'outbox' && $this->caldavBackend instanceof SchedulingSupport) { |
| 90 |
|
return new Outbox($this->principalInfo['uri']); |
| 91 |
|
} |
| 92 |
|
if ($name === 'notifications' && $this->caldavBackend instanceof NotificationSupport) { |
| 93 |
|
return new \Sabre\CalDAv\Notifications\Collection($this->caldavBackend, $this->principalInfo['uri']); |
| 94 |
|
} |
| 95 |
|
|
| 96 |
|
// Calendars |
| 97 |
|
foreach ($this->caldavBackend->getCalendarsForUser($this->principalInfo['uri']) as $calendar) { |