ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
ilWebDAVSabreBrowserPlugin Class Reference

The only purpose for this class is to redirect a browsers WebDAV-Request to the mount-instructions page. More...

+ Inheritance diagram for ilWebDAVSabreBrowserPlugin:
+ Collaboration diagram for ilWebDAVSabreBrowserPlugin:

Public Member Functions

 __construct (protected ilCtrlInterface $ctrl, UriInterface $uri)
 
 generateDirectoryIndex ($path)
 

Private Attributes

string $mount_instruction_path
 

Detailed Description

The only purpose for this class is to redirect a browsers WebDAV-Request to the mount-instructions page.

Definition at line 27 of file class.ilWebDAVSabreBrowserPlugin.php.

Constructor & Destructor Documentation

◆ __construct()

ilWebDAVSabreBrowserPlugin::__construct ( protected ilCtrlInterface  $ctrl,
UriInterface  $uri 
)

Definition at line 31 of file class.ilWebDAVSabreBrowserPlugin.php.

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";
38 }
__construct(Container $dic, ilPlugin $plugin)
@inheritDoc

References ILIAS\GlobalScreen\Provider\__construct().

+ Here is the call graph for this function:

Member Function Documentation

◆ generateDirectoryIndex()

ilWebDAVSabreBrowserPlugin::generateDirectoryIndex (   $path)

Definition at line 44 of file class.ilWebDAVSabreBrowserPlugin.php.

45 {
46 // return parent::generateDirectoryIndex($path);
47 $this->ctrl->redirectToURL($this->mount_instruction_path);
48 return '';
49 }

References ILIAS\Repository\ctrl().

+ Here is the call graph for this function:

Field Documentation

◆ $mount_instruction_path

string ilWebDAVSabreBrowserPlugin::$mount_instruction_path
private

Definition at line 29 of file class.ilWebDAVSabreBrowserPlugin.php.


The documentation for this class was generated from the following file: