ILIAS  release_5-4 Revision v5.4.26-12-gabc799a52e6
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...
 
- Public Member Functions inherited from Sabre\DAV\Browser\Plugin
 __construct ($enablePost=true)
 Creates the object. More...
 
 initialize (DAV\Server $server)
 Initializes the plugin and subscribes to events. More...
 
 httpGetEarly (RequestInterface $request, ResponseInterface $response)
 This method intercepts GET requests that have ?sabreAction=info appended to the URL. More...
 
 httpGet (RequestInterface $request, ResponseInterface $response)
 This method intercepts GET requests to collections and returns the html. More...
 
 httpPOST (RequestInterface $request, ResponseInterface $response)
 Handles POST requests for tree operations. More...
 
 escapeHTML ($value)
 Escapes a string for html. More...
 
 generateDirectoryIndex ($path)
 Generates the html directory index for a given url. More...
 
 generatePluginListing ()
 Generates the 'plugins' page. More...
 
 generateHeader ($title, $path=null)
 Generates the first block of HTML, including the <head> tag and page header. More...
 
 generateFooter ()
 Generates the page footer. More...
 
 htmlActionsPanel (DAV\INode $node, &$output, $path)
 This method is used to generate the 'actions panel' output for collections. More...
 
 getPluginName ()
 Returns a plugin name. More...
 
 getPluginInfo ()
 Returns a bunch of meta-data about the plugin. More...
 
- Public Member Functions inherited from Sabre\DAV\ServerPlugin
 initialize (Server $server)
 This initializes the plugin. More...
 
 getFeatures ()
 This method should return a list of server-features. More...
 
 getHTTPMethods ($path)
 Use this method to tell the server this plugin defines additional HTTP methods. More...
 
 getPluginName ()
 Returns a plugin name. More...
 
 getSupportedReportSet ($uri)
 Returns a list of reports this plugin supports. More...
 
 getPluginInfo ()
 Returns a bunch of meta-data about the plugin. More...
 

Protected Attributes

 $ilCtrl
 
- Protected Attributes inherited from Sabre\DAV\Browser\Plugin
 $server
 
 $enablePost = true
 

Additional Inherited Members

- Data Fields inherited from Sabre\DAV\Browser\Plugin
 $uninterestingProperties
 
- Protected Member Functions inherited from Sabre\DAV\Browser\Plugin
 getAssetUrl ($assetName)
 This method takes a path/name of an asset and turns it into url suiteable for http access. More...
 
 getLocalAssetPath ($assetName)
 This method returns a local pathname to an asset. More...
 
 serveAsset ($assetName)
 This method reads an asset from disk and generates a full http response. More...
 
 compareNodes ($a, $b)
 Sort helper function: compares two directory entries based on type and display name. More...
 

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.

19  {
20  $this->ctrl = $ilCtrl;
21  parent::__construct(false);
22  }

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: