ILIAS  trunk Revision v11.0_alpha-2638-g80c1d007f79
class.ilWebDAVRequestHandler.php
Go to the documentation of this file.
1 <?php
2 
19 declare(strict_types=1);
20 
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;
36  $_POST = $post_array;
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 }
$post_array
Definition: webdav.php:33
This class represents the absolut Root-Node on a WebDAV request.
__construct(private ilWebDAVDIC $webdav_dic)
catch(InvalidArgumentException) if(!ilDAVActivationChecker::_isActive()) $webdav_dic
Definition: webdav.php:57
$server
Definition: shib_login.php:28