ILIAS  trunk Revision v11.0_alpha-1866-gfa368f7776e
All Data Structures Namespaces Files Functions Variables Enumerations Enumerator Modules Pages
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.

References ILIAS\GlobalScreen\Provider\__construct().

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  }
__construct(Container $dic, ilPlugin $plugin)
+ Here is the call graph for this function:

Member Function Documentation

◆ generateDirectoryIndex()

ilWebDAVSabreBrowserPlugin::generateDirectoryIndex (   $path)

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

References ILIAS\Repository\ctrl().

45  {
46  // return parent::generateDirectoryIndex($path);
47  $this->ctrl->redirectToURL($this->mount_instruction_path);
48  return '';
49  }
+ 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: