Lines Matching refs:server

48     protected $server;  variable in Sabre\\CardDAV\\Plugin
63 function initialize(DAV\Server $server) { argument
66 $server->on('propFind', [$this, 'propFindEarly']);
67 $server->on('propFind', [$this, 'propFindLate'], 150);
68 $server->on('report', [$this, 'report']);
69 $server->on('onHTMLActionsPanel', [$this, 'htmlActionsPanel']);
70 $server->on('beforeWriteContent', [$this, 'beforeWriteContent']);
71 $server->on('beforeCreateFile', [$this, 'beforeCreateFile']);
72 $server->on('afterMethod:GET', [$this, 'httpAfterGet']);
74 $server->xml->namespaceMap[self::NS_CARDDAV] = 'card';
76 …$server->xml->elementMap['{' . self::NS_CARDDAV . '}addressbook-query'] = 'Sabre\\CardDAV\\Xml\\Re…
77 …$server->xml->elementMap['{' . self::NS_CARDDAV . '}addressbook-multiget'] = 'Sabre\\CardDAV\\Xml\…
80 …$server->resourceTypeMapping['Sabre\\CardDAV\\IAddressBook'] = '{' . self::NS_CARDDAV . '}addressb…
81 …$server->resourceTypeMapping['Sabre\\CardDAV\\IDirectory'] = '{' . self::NS_CARDDAV . '}directory';
84 $server->protectedProperties[] = '{' . self::NS_CARDDAV . '}supported-address-data';
85 $server->protectedProperties[] = '{' . self::NS_CARDDAV . '}max-resource-size';
86 $server->protectedProperties[] = '{' . self::NS_CARDDAV . '}addressbook-home-set';
87 $server->protectedProperties[] = '{' . self::NS_CARDDAV . '}supported-collation-set';
89 …$server->xml->elementMap['{http://calendarserver.org/ns/}me-card'] = 'Sabre\\DAV\\Xml\\Property\\H…
91 $this->server = $server;
120 $node = $this->server->tree->getNodeForPath($uri);
197 $this->server->transactionType = 'report-addressbook-multiget';
201 $this->server->transactionType = 'report-addressbook-query';
249 [$this->server, 'calculateUri'],
252 … foreach ($this->server->getPropertiesForMultiplePaths($paths, $report->properties) as $props) {
266 $prefer = $this->server->getHTTPPrefer();
268 $this->server->httpResponse->setStatus(207);
269 $this->server->httpResponse->setHeader('Content-Type', 'application/xml; charset=utf-8');
270 $this->server->httpResponse->setHeader('Vary', 'Brief,Prefer');
271 …$this->server->httpResponse->setBody($this->server->generateMultiStatus($propertyList, $prefer['re…
389 $depth = $this->server->getHTTPDepth(0);
393 $this->server->tree->getNodeForPath($this->server->getRequestUri())
399 $candidateNodes = $this->server->tree->getChildren($this->server->getRequestUri());
439 $href = $this->server->getRequestUri();
441 $href = $this->server->getRequestUri() . '/' . $validNode->getName();
444 list($props) = $this->server->getPropertiesForPath($href, $report->properties, 0);
458 $prefer = $this->server->getHTTPPrefer();
460 $this->server->httpResponse->setStatus(207);
461 $this->server->httpResponse->setHeader('Content-Type', 'application/xml; charset=utf-8');
462 $this->server->httpResponse->setHeader('Vary', 'Brief,Prefer');
463 …$this->server->httpResponse->setBody($this->server->generateMultiStatus($result, $prefer['return']…
668 if (strpos($this->server->httpRequest->getHeader('User-Agent'), 'Thunderbird') === false) {