ILIAS  release_8 Revision v8.24
class.ilWebDAVRequestHandler.php
Go to the documentation of this file.
1<?php
2
3declare(strict_types=1);
4
21use Sabre\DAV\Server;
22
28{
30
32 {
33 $this->webdav_dic = $webdav_dic;
34 }
35
36 public function handleRequest(array $post_array): void
37 {
38 $post_object = $_POST;
39 $_POST = $post_array;
40 $server = new Server($this->getRootDir());
41 $_POST = $post_object;
42 $this->setPlugins($server);
43 $server->start();
44 }
45
46 protected function setPlugins(Server $server): void
47 {
48 $auth_plugin = $this->webdav_dic->authplugin();
49 $server->addPlugin($auth_plugin);
50
51 $lock_plugin = $this->webdav_dic->locksplugin();
52 $server->addPlugin($lock_plugin);
53
54 $browser_plugin = $this->webdav_dic->browserplugin();
55 $server->addPlugin($browser_plugin);
56 }
57
58 protected function getRootDir(): ilDAVMountPoint
59 {
60 return $this->webdav_dic->dav_factory()->getMountPoint();
61 }
62}
This class represents the absolut Root-Node on a WebDAV request.
__construct(ilWebDAVDIC $webdav_dic)
$server
$post_array
Definition: webdav.php:31