ILIAS  release_9 Revision v9.13-25-g2c18ec4c24f
class.ilWebDAVSabreBrowserPlugin.php
Go to the documentation of this file.
1 <?php
2 
19 declare(strict_types=1);
20 
23 
27 class ilWebDAVSabreBrowserPlugin extends Plugin
28 {
29  private string $mount_instruction_path;
30 
31  public function __construct(protected ilCtrlInterface $ctrl, UriInterface $uri)
32  {
33  $this->mount_instruction_path = $uri->getScheme() . '://';
34  $this->mount_instruction_path .= $uri->getHost();
35  $this->mount_instruction_path .= $uri->getPath();
36  $this->mount_instruction_path .= "?mount-instructions";
37  parent::__construct(false);
38  }
39 
43  public function generateDirectoryIndex($path)
44  {
45  // return parent::generateDirectoryIndex($path);
46  $this->ctrl->redirectToURL($this->mount_instruction_path);
47  return '';
48  }
49 }
__construct(protected ilCtrlInterface $ctrl, UriInterface $uri)
The only purpose for this class is to redirect a browsers WebDAV-Request to the mount-instructions pa...
$path
Definition: ltiservices.php:32
__construct(VocabulariesInterface $vocabularies)