34 $this->
user = $DIC->user();
35 $this->
lng = $DIC->language();
36 $this->rbacsystem =
$DIC->rbac()->system();
37 $this->
access = $DIC->access();
44 $DIC->language()->loadLanguageModule(
"itgr");
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)
63 $ilAccess =
$DIC->access();
65 $t_arr = explode(
"_", $target);
67 if ($t_arr[0] !=
"itgr" || ((
int) $t_arr[1]) <= 0) {
71 if ($ilAccess->checkAccess(
"read",
"", $t_arr[1])) {
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
static _getCommands()
get commands
_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::checkAcc...
static _checkGoto(string $target)
check whether goto script will succeed
class ilRbacSystem system function like checkAccess, addActiveRole ... Supporting system functions ar...
Interface ilAccessHandler This interface combines all available interfaces which can be called via gl...