ILIAS  release_7 Revision v7.30-3-g800a261c036
ilWebDAVMountInstructionsFactory Class Reference

Class ilWebDAVMountInstructionsfactory. More...

+ Collaboration diagram for ilWebDAVMountInstructionsFactory:

Public Member Functions

 __construct (ilWebDAVMountInstructionsRepositoryImpl $a_repo, \Psr\Http\Message\RequestInterface $a_request, \ilObjUser $a_user)
 
 getMountInstructionsObject ()
 

Private Attributes

 $repo
 
 $request
 
 $user
 

Detailed Description

Class ilWebDAVMountInstructionsfactory.

Author
Stephan Winiker steph.nosp@m.an.w.nosp@m.inike.nosp@m.r@hs.nosp@m.lu.ch $Id$

Definition at line 9 of file class.ilWebDAVMountInstructionsFactory.php.

Constructor & Destructor Documentation

◆ __construct()

ilWebDAVMountInstructionsFactory::__construct ( ilWebDAVMountInstructionsRepositoryImpl  $a_repo,
\Psr\Http\Message\RequestInterface  $a_request,
\ilObjUser  $a_user 
)

Definition at line 15 of file class.ilWebDAVMountInstructionsFactory.php.

19 {
20 $this->repo = $a_repo;
21 $this->request = $a_request;
22 $this->user = $a_user;
23 }
user()
Definition: user.php:4

References user().

+ Here is the call graph for this function:

Member Function Documentation

◆ getMountInstructionsObject()

ilWebDAVMountInstructionsFactory::getMountInstructionsObject ( )

Definition at line 25 of file class.ilWebDAVMountInstructionsFactory.php.

26 {
27 $uri_builder = new ilWebDAVUriBuilder($this->request);
28 $uri = $this->request->getUri()->getPath();
29
30 $splitted_uri = explode('/', $uri);
31
32 // Remove path elements before and until webdav script
33 while (array_shift($splitted_uri) != 'webdav.php' && count($splitted_uri) > 0);
34
35 $path_value = $splitted_uri[1];
36
37 if (strlen($path_value) == 2) {
39 $this->repo,
40 $uri_builder,
41 new ilSetting('file_access'),
42 $path_value
43 );
44 } elseif (substr($path_value, 0, 4) == 'ref_') {
46 $this->repo,
47 $uri_builder,
48 new ilSetting('file_access'),
49 $this->user->getLanguage(),
50 (int) substr($path_value, 4)
51 );
52 } else {
53 throw new InvalidArgumentException("Invalid path given");
54 }
55 }
ILIAS Setting Class.

References user().

+ Here is the call graph for this function:

Field Documentation

◆ $repo

ilWebDAVMountInstructionsFactory::$repo
private

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

◆ $request

ilWebDAVMountInstructionsFactory::$request
private

Definition at line 12 of file class.ilWebDAVMountInstructionsFactory.php.

◆ $user

ilWebDAVMountInstructionsFactory::$user
private

Definition at line 13 of file class.ilWebDAVMountInstructionsFactory.php.


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