24 include_once
'./Services/Container/classes/class.ilMemberViewSettings.php';
43 $ilAccess = $DIC->access();
47 if (!$settings->isEnabled()) {
53 $tree = $DIC->repositoryTree();
54 $lng = $DIC->language();
55 $ilTabs = $DIC->tabs();
58 if (!$tree->checkForParentType($a_ref_id,
'crs') and
59 !$tree->checkForParentType($a_ref_id,
'grp')) {
65 $active = $settings->isActive();
68 if ((
$type ==
'crs' or
$type ==
'grp') and $ilAccess->checkAccess(
'write',
'', $a_ref_id)) {
69 $ilCtrl->setParameterByClass(
"ilrepositorygui",
"ref_id", $a_ref_id);
70 $ilCtrl->setParameterByClass(
"ilrepositorygui",
"mv",
"1");
71 $ilCtrl->setParameterByClass(
"ilrepositorygui",
"set_mode",
"flat");
72 $ilTabs->addNonTabbedLink(
74 $lng->txt(
'mem_view_activate'),
75 $ilCtrl->getLinkTargetByClass(
"ilrepositorygui",
"frameset")
77 $ilCtrl->clearParametersByClass(
"ilrepositorygui");
static showMemberViewSwitch($a_ref_id)
Show member view switch.
static _lookupObjId($a_id)
static _lookupType($a_id, $a_reference=false)
lookup object type
static getInstance()
Get instance.