ILIAS  release_6 Revision v6.24-5-g0c8bfefb3b8
All Data Structures Namespaces Files Functions Variables Modules Pages
ilWebDAVSabreBrowserPlugin Class Reference

Class ilWebDAVSabreBrowserPlugin. More...

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

Public Member Functions

 __construct (ilCtrl $ilCtrl)
 Override the original contructor. More...
 
 generateDirectoryIndex ($path)
 Override the original generateDirectoryIndex method. More...
 

Protected Attributes

 $ilCtrl
 

Detailed Description

Class ilWebDAVSabreBrowserPlugin.

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

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

Constructor & Destructor Documentation

◆ __construct()

ilWebDAVSabreBrowserPlugin::__construct ( ilCtrl  $ilCtrl)

Override the original contructor.

ilCtrl is needed to redirect to the mount-instructions page.

Parameters
ilCtrl$ilCtrl

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

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

19  {
20  $this->ctrl = $ilCtrl;
21  parent::__construct(false);
22  }
__construct(Container $dic, ilPlugin $plugin)
+ Here is the call graph for this function:

Member Function Documentation

◆ generateDirectoryIndex()

ilWebDAVSabreBrowserPlugin::generateDirectoryIndex (   $path)

Override the original generateDirectoryIndex method.

Instead of creating the HTML-Code for a WebDAV site, redirect to the mount-instrunctions page. The ILIAS WebDAV Service is made to communicate with file managers. Browsers shall use the regular way to interact with ILIAS

Parameters
string$path

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

32  {
33  $this->ctrl->redirectToURL("http://$_SERVER[HTTP_HOST]$_SERVER[REQUEST_URI]?mount-instructions");
34  }

Field Documentation

◆ $ilCtrl

ilWebDAVSabreBrowserPlugin::$ilCtrl
protected

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

Referenced by __construct().


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