24 include_once
'./Services/Container/classes/class.ilMemberViewSettings.php';
44 if(!$settings->isEnabled())
51 if(!$tree->checkForParentType($a_ref_id,
'crs')
and 52 !$tree->checkForParentType($a_ref_id,
'grp'))
59 $active = $settings->isActive();
62 if(($type ==
'crs' or $type ==
'grp')
and $ilAccess->checkAccess(
'write',
'',$a_ref_id))
64 $ilCtrl->setParameterByClass(
"ilrepositorygui",
"ref_id", $a_ref_id);
65 $ilCtrl->setParameterByClass(
"ilrepositorygui",
"mv",
"1");
66 $ilCtrl->setParameterByClass(
"ilrepositorygui",
"set_mode",
"flat");
67 $ilTabs->addNonTabbedLink(
"members_view",
68 $lng->txt(
'mem_view_activate'),
69 $ilCtrl->getLinkTargetByClass(
"ilrepositorygui",
"frameset")
71 $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.