ILIAS  trunk Revision v11.0_alpha-1846-g895b5f47236
All Data Structures Namespaces Files Functions Variables Enumerations Enumerator Modules Pages
ilObjectPluginAccess Class Reference

This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Learning e.V. More...

+ Inheritance diagram for ilObjectPluginAccess:
+ Collaboration diagram for ilObjectPluginAccess:

Public Member Functions

 __construct ()
 
 _checkCondition (int $a_obj_id, string $a_operator, $a_value, int $a_usr_id=0)
 check condition More...
 
- 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)
 

Static Public Member Functions

static _checkGoto (string $target)
 check whether goto script will succeed More...
 
static _getCommands ()
 
- 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...
 

Protected Attributes

ilObjUser $user
 
ilAccessHandler $access
 

Detailed Description

This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Learning e.V.

ILIAS is licensed with the GPL-3.0, see https://www.gnu.org/licenses/gpl-3.0.en.html You should have received a copy of said license along with the source code, too.

If this is not the case or you just want to try ILIAS, you'll find us at: https://www.ilias.de https://github.com/ILIAS-eLearning Access class for repsoitory plugins

Author
Alexander Killing killi.nosp@m.ng@l.nosp@m.eifos.nosp@m..de

Definition at line 24 of file class.ilObjectPluginAccess.php.

Constructor & Destructor Documentation

◆ __construct()

ilObjectPluginAccess::__construct ( )

Definition at line 29 of file class.ilObjectPluginAccess.php.

References $DIC, ILIAS\Repository\access(), and ILIAS\Repository\user().

30  {
31  global $DIC;
32 
33  $this->user = $DIC->user();
34  $this->access = $DIC->access();
35  }
global $DIC
Definition: shib_login.php:22
+ Here is the call graph for this function:

Member Function Documentation

◆ _checkCondition()

ilObjectPluginAccess::_checkCondition ( int  $a_obj_id,
string  $a_operator,
  $a_value,
int  $a_usr_id = 0 
)

check condition

this method is called by ilConditionHandler

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

42  : bool
43  {
44  return true;
45  }

◆ _checkGoto()

static ilObjectPluginAccess::_checkGoto ( string  $target)
static

check whether goto script will succeed

Definition at line 50 of file class.ilObjectPluginAccess.php.

References $DIC.

50  : bool
51  {
52  global $DIC;
53 
54  $ilAccess = $DIC->access();
55 
56  $t_arr = explode("_", $target);
57 
58  if ($ilAccess->checkAccess("read", "", (int) $t_arr[1])) {
59  return true;
60  }
61  return false;
62  }
global $DIC
Definition: shib_login.php:22

◆ _getCommands()

static ilObjectPluginAccess::_getCommands ( )
static

Definition at line 65 of file class.ilObjectPluginAccess.php.

65  : array
66  {
67  return [];
68  }

Field Documentation

◆ $access

ilAccessHandler ilObjectPluginAccess::$access
protected

Definition at line 27 of file class.ilObjectPluginAccess.php.

◆ $user

ilObjUser ilObjectPluginAccess::$user
protected

Definition at line 26 of file class.ilObjectPluginAccess.php.


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