Lines Matching refs:server
51 protected $server; variable in Sabre\\CalDAV\\Plugin
76 $node = $this->server->tree->getNodeForPath($parent);
153 $node = $this->server->tree->getNodeForPath($uri);
166 if ($node instanceof CalendarHome && $this->server->getPlugin('sync')) {
179 function initialize(DAV\Server $server) { argument
181 $this->server = $server;
183 $server->on('method:MKCALENDAR', [$this, 'httpMkCalendar']);
184 $server->on('report', [$this, 'report']);
185 $server->on('propFind', [$this, 'propFind']);
186 $server->on('onHTMLActionsPanel', [$this, 'htmlActionsPanel']);
187 $server->on('beforeCreateFile', [$this, 'beforeCreateFile']);
188 $server->on('beforeWriteContent', [$this, 'beforeWriteContent']);
189 $server->on('afterMethod:GET', [$this, 'httpAfterGET']);
190 $server->on('getSupportedPrivilegeSet', [$this, 'getSupportedPrivilegeSet']);
192 $server->xml->namespaceMap[self::NS_CALDAV] = 'cal';
193 $server->xml->namespaceMap[self::NS_CALENDARSERVER] = 'cs';
195 …$server->xml->elementMap['{' . self::NS_CALDAV . '}supported-calendar-component-set'] = 'Sabre\\Ca…
196 …$server->xml->elementMap['{' . self::NS_CALDAV . '}calendar-query'] = 'Sabre\\CalDAV\\Xml\\Request…
197 …$server->xml->elementMap['{' . self::NS_CALDAV . '}calendar-multiget'] = 'Sabre\\CalDAV\\Xml\\Requ…
198 …$server->xml->elementMap['{' . self::NS_CALDAV . '}free-busy-query'] = 'Sabre\\CalDAV\\Xml\\Reques…
199 …$server->xml->elementMap['{' . self::NS_CALDAV . '}mkcalendar'] = 'Sabre\\CalDAV\\Xml\\Request\\Mk…
200 …$server->xml->elementMap['{' . self::NS_CALDAV . '}schedule-calendar-transp'] = 'Sabre\\CalDAV\\Xm…
201 …$server->xml->elementMap['{' . self::NS_CALDAV . '}supported-calendar-component-set'] = 'Sabre\\Ca…
203 …$server->resourceTypeMapping['\\Sabre\\CalDAV\\ICalendar'] = '{urn:ietf:params:xml:ns:caldav}calen…
205 …$server->resourceTypeMapping['\\Sabre\\CalDAV\\Principal\\IProxyRead'] = '{http://calendarserver.o…
206 …$server->resourceTypeMapping['\\Sabre\\CalDAV\\Principal\\IProxyWrite'] = '{http://calendarserver.…
208 array_push($server->protectedProperties,
228 if ($aclPlugin = $server->getPlugin('acl')) {
245 $this->server->transactionType = 'report-calendar-multiget';
249 $this->server->transactionType = 'report-calendar-query';
253 $this->server->transactionType = 'report-free-busy-query';
280 $mkcalendar = $this->server->xml->expect(
303 $this->server->createCollection($path, new MkCol($resourceType, $properties));
354 $addresses[] = $this->server->getBaseUri() . $node->getPrincipalUrl() . '/';
377 $aclPlugin = $this->server->getPlugin('acl');
384 $groupNode = $this->server->tree->getNodeForPath($group);
443 [$this->server, 'calculateUri'],
447 …foreach ($this->server->getPropertiesForMultiplePaths($paths, $report->properties) as $uri => $obj…
459 $tzResult = $this->server->getProperties($calendarPath, [$tzProp]);
488 $prefer = $this->server->getHTTPPrefer();
490 $this->server->httpResponse->setStatus(207);
491 $this->server->httpResponse->setHeader('Content-Type', 'application/xml; charset=utf-8');
492 $this->server->httpResponse->setHeader('Vary', 'Brief,Prefer');
493 …$this->server->httpResponse->setBody($this->server->generateMultiStatus($propertyList, $prefer['re…
508 $path = $this->server->getRequestUri();
512 $node = $this->server->tree->getNodeForPath($this->server->getRequestUri());
513 $depth = $this->server->getHTTPDepth(0);
523 $tzResult = $this->server->getProperties($path, [$tzProp]);
556 $properties = $this->server->getPropertiesForPath(
605 if (strpos($this->server->httpRequest->getHeader('User-Agent'), 'MSFT-') === 0) {
629 …$this->server->getPropertiesForPath($this->server->getRequestUri() . '/' . $path, $report->propert…
654 $prefer = $this->server->getHTTPPrefer();
656 $this->server->httpResponse->setStatus(207);
657 $this->server->httpResponse->setHeader('Content-Type', 'application/xml; charset=utf-8');
658 $this->server->httpResponse->setHeader('Vary', 'Brief,Prefer');
659 …$this->server->httpResponse->setBody($this->server->generateMultiStatus($result, $prefer['return']…
672 $uri = $this->server->getRequestUri();
674 $acl = $this->server->getPlugin('acl');
679 $calendar = $this->server->tree->getNodeForPath($uri);
688 $calendarProps = $this->server->getProperties($uri, [$tzProp]);
732 $this->server->httpResponse->setStatus(200);
733 $this->server->httpResponse->setHeader('Content-Type', 'text/calendar');
734 $this->server->httpResponse->setHeader('Content-Length', strlen($result));
735 $this->server->httpResponse->setBody($result);
761 $parentNode = $this->server->tree->getNodeForPath($parent);
770 $this->server->httpRequest,
771 $this->server->httpResponse,
799 $this->server->httpRequest,
800 $this->server->httpResponse,
858 $calendarProperties = $this->server->getProperties($parentPath, [$sCCS]);
886 $prefer = $this->server->getHTTPPrefer();
935 $this->server->emit(