Lines Matching refs:server
59 protected $server; variable in Sabre\\DAVACL\\Plugin
210 $authPlugin = $this->server->getPlugin('auth');
213 $this->server->httpRequest,
214 $this->server->httpResponse
240 $authPlugin = $this->server->getPlugin('auth');
341 $node = $this->server->tree->getNodeForPath($principal);
444 $node = $this->server->tree->getNodeForPath($node);
506 $this->server->emit(
590 $node = $this->server->tree->getNodeForPath($node);
621 $node = $this->server->tree->getNodeForPath($node);
685 …$this->server->getLogger()->debug('A node has the "' . $current['privilege'] . '" in its ACL list,…
715 $principalCollection = $this->server->tree->getNodeForPath($collection);
770 $principalCollection = $this->server->tree->getNodeForPath($uri);
788 … list($matches[]) = $this->server->getPropertiesForPath($lookupResult, $requestedProperties, 0);
804 function initialize(DAV\Server $server) { argument
807 $authPlugin = $server->getPlugin('auth');
814 $this->server = $server;
815 $server->on('propFind', [$this, 'propFind'], 20);
816 $server->on('beforeMethod', [$this, 'beforeMethod'], 20);
817 $server->on('beforeBind', [$this, 'beforeBind'], 20);
818 $server->on('beforeUnbind', [$this, 'beforeUnbind'], 20);
819 $server->on('propPatch', [$this, 'propPatch']);
820 $server->on('beforeUnlock', [$this, 'beforeUnlock'], 20);
821 $server->on('report', [$this, 'report']);
822 $server->on('method:ACL', [$this, 'httpAcl']);
823 $server->on('onHTMLActionsPanel', [$this, 'htmlActionsPanel']);
824 $server->on('getPrincipalByUri', function($principal, &$uri) {
833 array_push($server->protectedProperties,
850 $server->resourceTypeMapping['Sabre\\DAVACL\\IPrincipal'] = '{DAV:}principal';
854 $server->xml->elementMap['{DAV:}group-member-set'] = 'Sabre\\DAV\\Xml\\Property\\Href';
855 $server->xml->elementMap['{DAV:}acl'] = 'Sabre\\DAVACL\\Xml\\Property\\Acl';
856 …$server->xml->elementMap['{DAV:}acl-principal-prop-set'] = 'Sabre\\DAVACL\\Xml\\Request\\AclPrinci…
857 …$server->xml->elementMap['{DAV:}expand-property'] = 'Sabre\\DAVACL\\Xml\\Request\\ExpandPropertyRe…
858 …$server->xml->elementMap['{DAV:}principal-property-search'] = 'Sabre\\DAVACL\\Xml\\Request\\Princi…
859 …$server->xml->elementMap['{DAV:}principal-search-property-set'] = 'Sabre\\DAVACL\\Xml\\Request\\Pr…
860 …$server->xml->elementMap['{DAV:}principal-match'] = 'Sabre\\DAVACL\\Xml\\Request\\PrincipalMatchRe…
878 $exists = $this->server->tree->nodeExists($path);
1100 [$this->server, 'calculateUri'],
1106 $node = $this->server->tree->getNodeForPath($path);
1135 $this->server->transactionType = 'report-principal-property-search';
1139 $this->server->transactionType = 'report-principal-search-property-set';
1143 $this->server->transactionType = 'report-expand-property';
1147 $this->server->transactionType = 'report-principal-match';
1151 $this->server->transactionType = 'acl-principal-prop-set';
1175 $acl = $this->server->xml->expect('{DAV:}acl', $body);
1180 $newAcl[$k]['principal'] = $this->server->calculateUri($newAce['principal']);
1182 $node = $this->server->tree->getNodeForPath($path);
1226 $principal = $this->server->tree->getNodeForPath($newAce['principal']);
1261 $depth = $this->server->getHTTPDepth(0);
1286 $candidates = $this->server->getPropertiesForPath(
1322 $foo = $this->server->getPropertiesForPath($item, $report->properties);
1338 $this->server->httpResponse->setHeader('Content-Type', 'application/xml; charset=utf-8');
1339 $this->server->httpResponse->setStatus(207);
1340 $this->server->httpResponse->setBody(
1341 $this->server->xml->write(
1344 $this->server->getBaseUri()
1368 $depth = $this->server->getHTTPDepth(0);
1372 $xml = $this->server->xml->write(
1375 $this->server->getBaseUri()
1377 $this->server->httpResponse->setHeader('Content-Type', 'application/xml; charset=utf-8');
1378 $this->server->httpResponse->setStatus(207);
1379 $this->server->httpResponse->setBody($xml);
1394 …$foundProperties = $this->server->getPropertiesForPath($path, array_keys($requestedProperties), $d…
1450 $httpDepth = $this->server->getHTTPDepth(0);
1455 $writer = $this->server->xml->getWriter();
1485 $this->server->httpResponse->setHeader('Content-Type', 'application/xml; charset=utf-8');
1486 $this->server->httpResponse->setStatus(200);
1487 $this->server->httpResponse->setBody($writer->outputMemory());
1508 if ($this->server->getHttpDepth('0') !== 0) {
1518 $prefer = $this->server->getHTTPPrefer();
1520 $this->server->httpResponse->setStatus(207);
1521 $this->server->httpResponse->setHeader('Content-Type', 'application/xml; charset=utf-8');
1522 $this->server->httpResponse->setHeader('Vary', 'Brief,Prefer');
1523 …$this->server->httpResponse->setBody($this->server->generateMultiStatus($result, $prefer['return']…
1546 if ($this->server->getHTTPDepth(0) !== 0) {
1553 $acl = $this->server->getProperties($path, '{DAV:}acl');
1571 $properties = $this->server->getPropertiesForMultiplePaths(
1576 $this->server->httpResponse->setStatus(207);
1577 $this->server->httpResponse->setHeader('Content-Type', 'application/xml; charset=utf-8');
1578 $this->server->httpResponse->setBody(
1579 $this->server->generateMultiStatus($properties)