|
@@ 93-97 (lines=5) @@
|
| 90 |
|
} |
| 91 |
|
|
| 92 |
|
// If the backend supports subscriptions, we'll add those as well, |
| 93 |
|
if ($this->caldavBackend instanceof SubscriptionSupport) { |
| 94 |
|
foreach ($this->caldavBackend->getSubscriptionsForUser($this->principalInfo['uri']) as $subscription) { |
| 95 |
|
$objects[] = new Subscription($this->caldavBackend, $subscription); |
| 96 |
|
} |
| 97 |
|
} |
| 98 |
|
|
| 99 |
|
return $objects; |
| 100 |
|
} |
|
@@ 124-131 (lines=8) @@
|
| 121 |
|
} |
| 122 |
|
} |
| 123 |
|
|
| 124 |
|
if ($this->caldavBackend instanceof SubscriptionSupport) { |
| 125 |
|
foreach ($this->caldavBackend->getSubscriptionsForUser($this->principalInfo['uri']) as $subscription) { |
| 126 |
|
if ($subscription['uri'] === $name) { |
| 127 |
|
return new Subscription($this->caldavBackend, $subscription); |
| 128 |
|
} |
| 129 |
|
} |
| 130 |
|
|
| 131 |
|
} |
| 132 |
|
|
| 133 |
|
throw new NotFound('Node with name \'' . $name . '\' could not be found'); |
| 134 |
|
} |