Lines Matching refs:caldavBackend
32 protected $caldavBackend; variable in Sabre\\CalDAV\\CalendarHome
47 function __construct(Backend\BackendInterface $caldavBackend, $principalInfo) { argument
49 $this->caldavBackend = $caldavBackend;
138 if ($name === 'inbox' && $this->caldavBackend instanceof Backend\SchedulingSupport) {
139 return new Schedule\Inbox($this->caldavBackend, $this->principalInfo['uri']);
141 if ($name === 'outbox' && $this->caldavBackend instanceof Backend\SchedulingSupport) {
144 … if ($name === 'notifications' && $this->caldavBackend instanceof Backend\NotificationSupport) {
145 return new Notifications\Collection($this->caldavBackend, $this->principalInfo['uri']);
149 … foreach ($this->caldavBackend->getCalendarsForUser($this->principalInfo['uri']) as $calendar) {
151 if ($this->caldavBackend instanceof Backend\SharingSupport) {
152 return new SharedCalendar($this->caldavBackend, $calendar);
154 return new Calendar($this->caldavBackend, $calendar);
159 if ($this->caldavBackend instanceof Backend\SubscriptionSupport) {
160 …foreach ($this->caldavBackend->getSubscriptionsForUser($this->principalInfo['uri']) as $subscripti…
162 return new Subscriptions\Subscription($this->caldavBackend, $subscription);
195 $calendars = $this->caldavBackend->getCalendarsForUser($this->principalInfo['uri']);
198 if ($this->caldavBackend instanceof Backend\SharingSupport) {
199 $objs[] = new SharedCalendar($this->caldavBackend, $calendar);
201 $objs[] = new Calendar($this->caldavBackend, $calendar);
205 if ($this->caldavBackend instanceof Backend\SchedulingSupport) {
206 $objs[] = new Schedule\Inbox($this->caldavBackend, $this->principalInfo['uri']);
211 if ($this->caldavBackend instanceof Backend\NotificationSupport) {
212 … $objs[] = new Notifications\Collection($this->caldavBackend, $this->principalInfo['uri']);
216 if ($this->caldavBackend instanceof Backend\SubscriptionSupport) {
217 …foreach ($this->caldavBackend->getSubscriptionsForUser($this->principalInfo['uri']) as $subscripti…
218 $objs[] = new Subscriptions\Subscription($this->caldavBackend, $subscription);
259 if (!$this->caldavBackend instanceof Backend\SubscriptionSupport) {
262 … $this->caldavBackend->createSubscription($this->principalInfo['uri'], $name, $properties);
265 $this->caldavBackend->createCalendar($this->principalInfo['uri'], $name, $properties);
346 if (!$this->caldavBackend instanceof Backend\SharingSupport) {
350 return $this->caldavBackend->shareReply($href, $status, $calendarUri, $inReplyTo, $summary);
374 return $this->caldavBackend->getCalendarObjectByUID($this->principalInfo['uri'], $uid);