28 $ilAccess =
$DIC->access();
29 $ilCtrl =
$DIC->ctrl();
35 $tree =
$DIC->repositoryTree();
37 $ilTabs =
$DIC->tabs();
40 if (!$tree->checkForParentType($a_ref_id,
'crs') &&
41 !$tree->checkForParentType($a_ref_id,
'grp')) {
48 if ((
$type ===
'crs' ||
$type ===
'grp') && $ilAccess->checkAccess(
'write',
'', $a_ref_id)) {
49 $ilCtrl->setParameterByClass(
"ilrepositorygui",
"ref_id", $a_ref_id);
50 $ilCtrl->setParameterByClass(
"ilrepositorygui",
"mv",
"1");
51 $ilCtrl->setParameterByClass(
"ilrepositorygui",
"set_mode",
"flat");
52 $ilTabs->addNonTabbedLink(
54 $lng->txt(
'mem_view_activate'),
55 $ilCtrl->getLinkTargetByClass(
"ilrepositorygui",
"")
57 $ilCtrl->clearParametersByClass(
"ilrepositorygui");
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
static showMemberViewSwitch(int $a_ref_id)
static _lookupType(int $id, bool $reference=false)
static _lookupObjId(int $ref_id)