ILIAS  release_8 Revision v8.19-1-g4e8f2f9140c
All Data Structures Namespaces Files Functions Variables Modules Pages
ilObjItemGroupAccess 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 ilObjItemGroupAccess:
+ Collaboration diagram for ilObjItemGroupAccess:

Public Member Functions

 __construct ()
 
 _checkAccess (string $cmd, string $permission, int $ref_id, int $obj_id, ?int $user_id=null)
 
- 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 _getCommands ()
 
static _checkGoto (string $target)
 
- 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
 
ilLanguage $lng
 
ilRbacSystem $rbacsystem
 
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 Item group access class

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

Definition at line 23 of file class.ilObjItemGroupAccess.php.

Constructor & Destructor Documentation

◆ __construct()

ilObjItemGroupAccess::__construct ( )

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

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

31  {
32  global $DIC;
33 
34  $this->user = $DIC->user();
35  $this->lng = $DIC->language();
36  $this->rbacsystem = $DIC->rbac()->system();
37  $this->access = $DIC->access();
38  }
global $DIC
Definition: feed.php:28
+ Here is the call graph for this function:

Member Function Documentation

◆ _checkAccess()

ilObjItemGroupAccess::_checkAccess ( string  $cmd,
string  $permission,
int  $ref_id,
int  $obj_id,
?int  $user_id = null 
)

Definition at line 54 of file class.ilObjItemGroupAccess.php.

54  : bool
55  {
56  return true;
57  }

◆ _checkGoto()

static ilObjItemGroupAccess::_checkGoto ( string  $target)
static

Definition at line 59 of file class.ilObjItemGroupAccess.php.

References $DIC.

59  : bool
60  {
61  global $DIC;
62 
63  $ilAccess = $DIC->access();
64 
65  $t_arr = explode("_", $target);
66 
67  if ($t_arr[0] != "itgr" || ((int) $t_arr[1]) <= 0) {
68  return false;
69  }
70 
71  if ($ilAccess->checkAccess("read", "", $t_arr[1])) {
72  return true;
73  }
74  return false;
75  }
global $DIC
Definition: feed.php:28

◆ _getCommands()

static ilObjItemGroupAccess::_getCommands ( )
static

Definition at line 40 of file class.ilObjItemGroupAccess.php.

References $DIC.

Referenced by ilObjItemGroupListGUI\init().

40  : array
41  {
42  global $DIC;
43 
44  $DIC->language()->loadLanguageModule("itgr");
45  $commands = array(
46  array("permission" => "read", "cmd" => "gotoParent", "lang_var" => "", "default" => true),
47  array("permission" => "write", "cmd" => "listMaterials", "lang_var" => "itgr_assign_materials", "default" => false),
48  array("permission" => "write", "cmd" => "edit", "lang_var" => "settings", "default" => false)
49  );
50 
51  return $commands;
52  }
global $DIC
Definition: feed.php:28
+ Here is the caller graph for this function:

Field Documentation

◆ $access

ilAccessHandler ilObjItemGroupAccess::$access
protected

Definition at line 28 of file class.ilObjItemGroupAccess.php.

◆ $lng

ilLanguage ilObjItemGroupAccess::$lng
protected

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

◆ $rbacsystem

ilRbacSystem ilObjItemGroupAccess::$rbacsystem
protected

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

◆ $user

ilObjUser ilObjItemGroupAccess::$user
protected

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


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