ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
class.ilWebDAVRequestHandler.php
Go to the documentation of this file.
1<?php
2
19declare(strict_types=1);
20
21use Sabre\DAV\Server;
22
28{
29 public function __construct(private ilWebDAVDIC $webdav_dic)
30 {
31 }
32
33 public function handleRequest(array $post_array): void
34 {
35 $post_object = $_POST;
37 $server = new Server($this->getRootDir());
38 $_POST = $post_object;
39 $this->setPlugins($server);
40 $server->start();
41 }
42
43 protected function setPlugins(Server $server): void
44 {
45 $auth_plugin = $this->webdav_dic->authplugin();
46 $server->addPlugin($auth_plugin);
47
48 $lock_plugin = $this->webdav_dic->locksplugin();
49 $server->addPlugin($lock_plugin);
50
51 // $browser_plugin = $this->webdav_dic->browserplugin();
52 // $server->addPlugin($browser_plugin);
53 }
54
55 protected function getRootDir(): ilDAVMountPoint
56 {
57 return $this->webdav_dic->dav_factory()->getMountPoint();
58 }
59}
This class represents the absolut Root-Node on a WebDAV request.
__construct(private ilWebDAVDIC $webdav_dic)
$_POST['cmd']
Definition: lti.php:27
$server
Definition: shib_login.php:28
catch(InvalidArgumentException) if(!ilDAVActivationChecker::_isActive()) $webdav_dic
Definition: webdav.php:57
$post_array
Definition: webdav.php:33