24 include_once(
"./Services/ContainerReference/classes/class.ilContainerReferenceAccess.php");
53 public function _checkAccess($a_cmd, $a_permission, $a_ref_id, $a_obj_id, $a_user_id =
"")
57 switch ($a_permission) {
60 include_once
'./Modules/CourseReference/classes/class.ilObjCourseReference.php';
63 if (!$ilAccess->checkAccessOfUser($a_user_id, $a_permission, $a_cmd, $target_ref_id)) {
92 if ($ilAccess->checkAccess(
'write',
'', $a_ref_id)) {
95 array(
"permission" =>
"visible",
"cmd" =>
"",
"lang_var" =>
"show",
"default" =>
true),
96 array(
"permission" =>
"write",
"cmd" =>
"editReference",
"lang_var" =>
"edit")
99 include_once(
'./Modules/Course/classes/class.ilObjCourseAccess.php');
static _getCommands($a_ref_id=0)
get commands
_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...
Create styles array
The data for the language used.
static _lookupTargetRefId($a_obj_id)
Lookup target ref_id.
static _getCommands()
get commands