ILIAS  release_8 Revision v8.19
All Data Structures Namespaces Files Functions Variables 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 (ilCtrlInterface $ctrl, UriInterface $uri)
 
 generateDirectoryIndex ($path)
 

Protected Attributes

ilCtrlInterface $ctrl
 

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 ( ilCtrlInterface  $ctrl,
UriInterface  $uri 
)

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

References $ctrl, ILIAS\GlobalScreen\Provider\__construct(), and ILIAS\Repository\ctrl().

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

Member Function Documentation

◆ generateDirectoryIndex()

ilWebDAVSabreBrowserPlugin::generateDirectoryIndex (   $path)

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

References ILIAS\Repository\ctrl().

46  {
47  $this->ctrl->redirectToURL($this->mount_instruction_path);
48  return '';
49  }
+ Here is the call graph for this function:

Field Documentation

◆ $ctrl

ilCtrlInterface ilWebDAVSabreBrowserPlugin::$ctrl
protected

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

Referenced by __construct().

◆ $mount_instruction_path

string ilWebDAVSabreBrowserPlugin::$mount_instruction_path
private

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


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