5 include_once
'./Services/Object/classes/class.ilObjectAccess.php';
45 $this->
user = $DIC->user();
46 $this->lng = $DIC->language();
47 $this->rbacsystem = $DIC->rbac()->system();
48 $this->access = $DIC->access();
62 array(
"permission" =>
"read",
"cmd" =>
"gotoParent",
"lang_var" =>
"",
"default" =>
true),
63 array(
"permission" =>
"write",
"cmd" =>
"listMaterials",
"lang_var" =>
"edit_content",
"default" =>
false),
64 array(
"permission" =>
"write",
"cmd" =>
"edit",
"lang_var" =>
"settings",
"default" =>
false)
82 public function _checkAccess($a_cmd, $a_permission, $a_ref_id, $a_obj_id, $a_user_id =
"")
89 $a_user_id = $a_user_id ? $a_user_id :
$ilUser->getId();
101 $ilAccess = $DIC->access();
103 $t_arr = explode(
"_", $a_target);
105 if ($t_arr[0] !=
"itgr" || ((
int) $t_arr[1]) <= 0) {
109 if ($ilAccess->checkAccess(
"read",
"", $t_arr[1])) {
__construct()
Constructor.
static _getCommands()
get list of command/permission combinations
static _checkGoto($a_target)
check whether goto script will succeed
Create styles array
The data for the language used.
_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::checkAcce...