ILIAS  release_8 Revision v8.19
All Data Structures Namespaces Files Functions Variables Modules Pages
class.ilWebDAVSabreBrowserPlugin.php
Go to the documentation of this file.
1 <?php
2 
3 declare(strict_types=1);
4 
23 
27 class ilWebDAVSabreBrowserPlugin extends Plugin
28 {
30  private string $mount_instruction_path;
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;
39  parent::__construct(false);
40  }
41 
45  public function generateDirectoryIndex($path)
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...
$path
Definition: ltiservices.php:32
__construct(ilCtrlInterface $ctrl, UriInterface $uri)
__construct(Container $dic, ilPlugin $plugin)