28 $ilAccess = $DIC->access();
29 $ilCtrl = $DIC->ctrl();
32 if (!$settings->isEnabled()) {
35 $tree = $DIC->repositoryTree();
36 $lng = $DIC->language();
37 $ilToolbar = $DIC->toolbar();
39 $ilTab = $DIC->tabs();
42 if (!$tree->checkForParentType($a_ref_id,
'crs') &&
43 !$tree->checkForParentType($a_ref_id,
'grp')) {
50 in_array($type, [
"crs",
"grp"]) &&
51 $ilAccess->checkAccess(
'write',
'', $a_ref_id)
53 $ilCtrl->setParameterByClass(
"ilrepositorygui",
"ref_id", $a_ref_id);
54 $ilCtrl->setParameterByClass(
"ilrepositorygui",
"mv",
"1");
55 $ilCtrl->setParameterByClass(
"ilrepositorygui",
"set_mode",
"flat");
56 $ilToolbar->addComponent(
57 $ui->factory()->button()->standard(
58 $lng->txt(
'mem_view_activate'),
59 $ilCtrl->getLinkTargetByClass(
"ilrepositorygui",
"")
62 $ilCtrl->clearParametersByClass(
"ilrepositorygui");
static _lookupObjId(int $ref_id)
static showMemberViewSwitch(int $a_ref_id)
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
static _lookupType(int $id, bool $reference=false)