24 include_once(
"./Services/ContainerReference/classes/class.ilContainerReferenceAccess.php");
41 public function _checkAccess($a_cmd, $a_permission, $a_ref_id, $a_obj_id, $a_user_id =
"")
45 switch ($a_permission) {
48 include_once
'./Modules/CourseReference/classes/class.ilObjCourseReference.php';
51 if (!$DIC->access()->checkAccessOfUser($a_user_id, $a_permission, $a_cmd, $target_ref_id)) {
69 $coursePreload->preLoad($DIC->user()->getId(), array_map(
function ($objId) {
81 if ($DIC->access()->checkAccess(
'write',
'', $a_ref_id)) {
84 array(
"permission" =>
"visible",
"cmd" =>
"",
"lang_var" =>
"show",
"default" =>
true),
85 array(
"permission" =>
"write",
"cmd" =>
"editReference",
"lang_var" =>
"edit")
88 include_once(
'./Modules/Course/classes/class.ilObjCourseAccess.php');
static _preloadData($a_obj_ids, $a_ref_ids)
static _getCommands($a_ref_id=0)
_checkAccess($a_cmd, $a_permission, $a_ref_id, $a_obj_id, $a_user_id="")
static _lookupTargetRefId($a_obj_id)
Lookup target ref_id.
static _lookupTargetId($a_obj_id)
lookup target id
static _getCommands()
get commands