Lines Matching refs:server

24     protected $server;  variable in Sabre\\DAV\\CorePlugin
29 * @param Server $server
32 function initialize(Server $server) { argument
34 $this->server = $server;
35 $server->on('method:GET', [$this, 'httpGet']);
36 $server->on('method:OPTIONS', [$this, 'httpOptions']);
37 $server->on('method:HEAD', [$this, 'httpHead']);
38 $server->on('method:DELETE', [$this, 'httpDelete']);
39 $server->on('method:PROPFIND', [$this, 'httpPropFind']);
40 $server->on('method:PROPPATCH', [$this, 'httpPropPatch']);
41 $server->on('method:PUT', [$this, 'httpPut']);
42 $server->on('method:MKCOL', [$this, 'httpMkcol']);
43 $server->on('method:MOVE', [$this, 'httpMove']);
44 $server->on('method:COPY', [$this, 'httpCopy']);
45 $server->on('method:REPORT', [$this, 'httpReport']);
47 $server->on('propPatch', [$this, 'propPatchProtectedPropertyCheck'], 90);
48 $server->on('propPatch', [$this, 'propPatchNodeUpdate'], 200);
49 $server->on('propFind', [$this, 'propFind']);
50 $server->on('propFind', [$this, 'propFindNode'], 120);
51 $server->on('propFind', [$this, 'propFindLate'], 200);
79 $node = $this->server->tree->getNodeForPath($path, 0);
97 $httpHeaders = $this->server->getHTTPHeaders($path);
120 $range = $this->server->getHTTPRange();
212 $methods = $this->server->getAllowedMethods($request->getPath());
217 foreach ($this->server->getPlugins() as $plugin) {
253 $this->server->invokeMethod($subRequest, $response, false);
286 if (!$this->server->emit('beforeUnbind', [$path])) return false;
287 $this->server->tree->delete($path);
288 $this->server->emit('afterUnbind', [$path]);
322 $propFindXml = $this->server->xml->expect('{DAV:}propfind', $requestBody);
332 $depth = $this->server->getHTTPDepth(1);
334 if (!$this->server->enablePropfindDepthInfinity && $depth != 0) $depth = 1;
336 … $newProperties = $this->server->getPropertiesForPath($path, $propFindXml->properties, $depth);
347 foreach ($this->server->getPlugins() as $plugin) {
352 $prefer = $this->server->getHTTPPrefer();
355 $data = $this->server->generateMultiStatus($newProperties, $minimal);
379 $propPatch = $this->server->xml->expect('{DAV:}propertyupdate', $request->getBody());
385 $result = $this->server->updateProperties($path, $newProperties);
387 $prefer = $this->server->getHTTPPrefer();
427 $this->server->generateMultiStatus([$multiStatus])
506 if ($this->server->tree->nodeExists($path)) {
508 $node = $this->server->tree->getNodeForPath($path);
513 if (!$this->server->updateFile($path, $body, $etag)) {
525 if (!$this->server->createFile($path, $body, $etag)) {
568 $mkcol = $this->server->xml->expect('{DAV:}mkcol', $requestBody);
590 $result = $this->server->createCollection($path, $mkcol);
597 $this->server->generateMultiStatus([$result])
624 $moveInfo = $this->server->getCopyAndMoveInfo($request);
628 if (!$this->server->emit('beforeUnbind', [$moveInfo['destination']])) return false;
631 if (!$this->server->emit('beforeUnbind',[$path])) return false;
632 if (!$this->server->emit('beforeBind',[$moveInfo['destination']])) return false;
633 if (!$this->server->emit('beforeMove', [$path, $moveInfo['destination']])) return false;
637 $this->server->tree->delete($moveInfo['destination']);
638 $this->server->emit('afterUnbind', [$moveInfo['destination']]);
642 $this->server->tree->move($path, $moveInfo['destination']);
648 $this->server->emit('afterMove', [$path, $moveInfo['destination']]);
649 $this->server->emit('afterUnbind', [$path]);
650 $this->server->emit('afterBind', [$moveInfo['destination']]);
676 $copyInfo = $this->server->getCopyAndMoveInfo($request);
679 if (!$this->server->emit('beforeUnbind', [$copyInfo['destination']])) return false;
680 $this->server->tree->delete($copyInfo['destination']);
683 if (!$this->server->emit('beforeBind', [$copyInfo['destination']])) return false;
684 $this->server->tree->copy($path, $copyInfo['destination']);
685 $this->server->emit('afterBind', [$copyInfo['destination']]);
712 $result = $this->server->xml->parse(
718 if ($this->server->emit('report', [$rootElementName, $result, $path])) {
747 $this->server->protectedProperties,
770 $node = $this->server->tree->getNodeForPath($path);
818 foreach ($this->server->getPlugins() as $plugin) {
824 return new Xml\Property\ResourceType($this->server->getResourceTypeForNode($node));
828 $this->server->getAllowedMethods($propFind->getPath())
888 $result = $this->server->getProperties($propFind->getPath(), [