ILIAS  release_8 Revision v8.24
class.ilWebDAVSabreBrowserPlugin.php
Go to the documentation of this file.
1<?php
2
3declare(strict_types=1);
4
21use Psr\Http\Message\UriInterface;
22use Sabre\DAV\Browser\Plugin;
23
27class ilWebDAVSabreBrowserPlugin extends Plugin
28{
31
32 public function __construct(ilCtrlInterface $ctrl, UriInterface $uri)
33 {
34 $this->mount_instruction_path = $uri->getScheme() . '://';
35 $this->mount_instruction_path .= $uri->getHost();
36 $this->mount_instruction_path .= $uri->getPath();
37 $this->mount_instruction_path .= "?mount-instructions";
38 $this->ctrl = $ctrl;
40 }
41
46 {
47 $this->ctrl->redirectToURL($this->mount_instruction_path);
48 return '';
49 }
50}
The only purpose for this class is to redirect a browsers WebDAV-Request to the mount-instructions pa...
__construct(ilCtrlInterface $ctrl, UriInterface $uri)
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
$path
Definition: ltiservices.php:32
__construct(Container $dic, ilPlugin $plugin)
@inheritDoc