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

Class ilObjWebDAVAccess. More...

+ Inheritance diagram for ilObjWebDAVAccess:
+ Collaboration diagram for ilObjWebDAVAccess:

Public Member Functions

 __construct ()
 ilObjWebDAVAccess constructor. More...
 
 checkAccessAndThrowException (string $permission)
 
 hasUserPermissionTo (string $permission)
 
- Public Member Functions inherited from ilObjectAccess
 _checkAccess ($a_cmd, $a_permission, $a_ref_id, $a_obj_id, $a_user_id="")
 Checks wether a user may invoke a command or not (this method is called by ilAccessHandler::checkAccess) More...
 
 _checkCondition ($a_obj_id, $a_operator, $a_value, $a_usr_id)
 check condition More...
 
 canBeDelivered (ilWACPath $ilWACPath)
 
Parameters
ilWACPath$ilWACPath
Returns
bool
More...
 
 canBeDelivered (ilWACPath $ilWACPath)
 

Private Attributes

 $http
 
 $rbacsystem
 

Additional Inherited Members

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

Detailed Description

Constructor & Destructor Documentation

◆ __construct()

ilObjWebDAVAccess::__construct ( )

ilObjWebDAVAccess constructor.

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

22 {
23 global $DIC;
24 $this->rbacsystem = $DIC->rbac()->system();
25 $this->http = $DIC->http();
26 }
global $DIC
Definition: goto.php:24
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)
Parameters
string$permission
Exceptions
ilException

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

32 : void
33 {
34 if (!$this->hasUserPermissionTo($permission)) {
35 throw new ilException('Permission denied');
36 }
37 }
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)
Parameters
string$permission
Returns
bool

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

43 : bool
44 {
45 return (bool) $this->rbacsystem->checkAccess($permission, $this->http->request()->getQueryParams()['ref_id']);
46 }

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

ilObjWebDAVAccess::$http
private

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

◆ $rbacsystem

ilObjWebDAVAccess::$rbacsystem
private

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


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