ILIAS  release_8 Revision v8.24
ilObjWebDAVAccess Class Reference
+ Inheritance diagram for ilObjWebDAVAccess:
+ Collaboration diagram for ilObjWebDAVAccess:

Public Member Functions

 __construct ()
 
 checkAccessAndThrowException (string $permission)
 
 hasUserPermissionTo (string $permission)
 
- Public Member Functions inherited from ilObjectAccess
 _checkAccess (string $cmd, string $permission, int $ref_id, int $obj_id, ?int $user_id=null)
 Checks whether a user may invoke a command or not (this method is called by ilAccessHandler::checkAccess) More...
 
 canBeDelivered (ilWACPath $ilWACPath)
 
 canBeDelivered (ilWACPath $ilWACPath)
 

Private Attributes

RequestWrapper $http
 
ilRbacSystem $rbacsystem
 
Transformation $int_trafo
 

Additional Inherited Members

- Static Public Member Functions inherited from ilObjectAccess
static _getCommands ()
 get commands More...
 
static _checkGoto (string $target)
 check whether goto script will succeed More...
 
static _isOffline (int $obj_id)
 Type-specific implementation of general status, has to be overwritten if object type does not support centralized offline handling. More...
 
static _preloadData (array $obj_ids, array $ref_ids)
 Preload data. More...
 

Detailed Description

Constructor & Destructor Documentation

◆ __construct()

ilObjWebDAVAccess::__construct ( )

Definition at line 34 of file class.ilObjWebDAVAccess.php.

35 {
36 global $DIC;
37 $this->rbacsystem = $DIC->rbac()->system();
38 $this->http = $DIC->http()->wrapper()->query();
39 $this->int_trafo = $DIC->refinery()->kindlyTo()->int();
40 }
global $DIC
Definition: feed.php:28
static http()
Fetches the global http state from ILIAS.

References $DIC, and ILIAS\FileDelivery\http().

+ Here is the call graph for this function:

Member Function Documentation

◆ checkAccessAndThrowException()

ilObjWebDAVAccess::checkAccessAndThrowException ( string  $permission)

Definition at line 42 of file class.ilObjWebDAVAccess.php.

42 : void
43 {
44 if (!$this->hasUserPermissionTo($permission)) {
45 throw new ilException('Permission denied');
46 }
47 }
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
hasUserPermissionTo(string $permission)

References hasUserPermissionTo().

+ Here is the call graph for this function:

◆ hasUserPermissionTo()

ilObjWebDAVAccess::hasUserPermissionTo ( string  $permission)

Definition at line 49 of file class.ilObjWebDAVAccess.php.

49 : bool
50 {
51 if (!$this->http->has('ref_id')) {
52 return false;
53 }
54 return $this->rbacsystem->checkAccess(
55 $permission,
56 $this->http->retrieve('ref_id', $this->int_trafo)
57 );
58 }

References ILIAS\FileDelivery\http().

Referenced by checkAccessAndThrowException().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

Field Documentation

◆ $http

RequestWrapper ilObjWebDAVAccess::$http
private

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

◆ $int_trafo

Transformation ilObjWebDAVAccess::$int_trafo
private

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

◆ $rbacsystem

ilRbacSystem ilObjWebDAVAccess::$rbacsystem
private

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


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