Lines Matching refs:caldavBackend
30 protected $caldavBackend; variable in Sabre\\CalDAV\\CalendarHome
45 function __construct(Backend\BackendInterface $caldavBackend, $principalInfo) { argument
47 $this->caldavBackend = $caldavBackend;
136 if ($name === 'inbox' && $this->caldavBackend instanceof Backend\SchedulingSupport) {
137 return new Schedule\Inbox($this->caldavBackend, $this->principalInfo['uri']);
139 if ($name === 'outbox' && $this->caldavBackend instanceof Backend\SchedulingSupport) {
142 … if ($name === 'notifications' && $this->caldavBackend instanceof Backend\NotificationSupport) {
143 return new Notifications\Collection($this->caldavBackend, $this->principalInfo['uri']);
147 … foreach ($this->caldavBackend->getCalendarsForUser($this->principalInfo['uri']) as $calendar) {
149 if ($this->caldavBackend instanceof Backend\SharingSupport) {
151 return new SharedCalendar($this->caldavBackend, $calendar);
153 return new ShareableCalendar($this->caldavBackend, $calendar);
156 return new Calendar($this->caldavBackend, $calendar);
161 if ($this->caldavBackend instanceof Backend\SubscriptionSupport) {
162 …foreach ($this->caldavBackend->getSubscriptionsForUser($this->principalInfo['uri']) as $subscripti…
164 return new Subscriptions\Subscription($this->caldavBackend, $subscription);
197 $calendars = $this->caldavBackend->getCalendarsForUser($this->principalInfo['uri']);
200 if ($this->caldavBackend instanceof Backend\SharingSupport) {
202 $objs[] = new SharedCalendar($this->caldavBackend, $calendar);
204 $objs[] = new ShareableCalendar($this->caldavBackend, $calendar);
207 $objs[] = new Calendar($this->caldavBackend, $calendar);
211 if ($this->caldavBackend instanceof Backend\SchedulingSupport) {
212 $objs[] = new Schedule\Inbox($this->caldavBackend, $this->principalInfo['uri']);
217 if ($this->caldavBackend instanceof Backend\NotificationSupport) {
218 … $objs[] = new Notifications\Collection($this->caldavBackend, $this->principalInfo['uri']);
222 if ($this->caldavBackend instanceof Backend\SubscriptionSupport) {
223 …foreach ($this->caldavBackend->getSubscriptionsForUser($this->principalInfo['uri']) as $subscripti…
224 $objs[] = new Subscriptions\Subscription($this->caldavBackend, $subscription);
265 if (!$this->caldavBackend instanceof Backend\SubscriptionSupport) {
268 … $this->caldavBackend->createSubscription($this->principalInfo['uri'], $name, $properties);
271 $this->caldavBackend->createCalendar($this->principalInfo['uri'], $name, $properties);
398 if (!$this->caldavBackend instanceof Backend\SharingSupport) {
402 return $this->caldavBackend->shareReply($href, $status, $calendarUri, $inReplyTo, $summary);
426 return $this->caldavBackend->getCalendarObjectByUID($this->principalInfo['uri'], $uid);