Show member view switch
More...
Show member view switch
- Author
- Stefan Meyer <meyer.leifos.com>
- Version
- $Id$
Definition at line 31 of file class.ilMemberViewGUI.php.
◆ showMemberViewSwitch()
static ilMemberViewGUI::showMemberViewSwitch |
( |
|
$a_ref_id | ) |
|
|
static |
Show member view switch.
- Returns
- Parameters
-
Definition at line 39 of file class.ilMemberViewGUI.php.
References $DIC, $ilCtrl, $lng, $tpl, $type, ilObject\_lookupObjId(), ilObject\_lookupType(), and ilMemberViewSettings\getInstance().
Referenced by ilContainerGUI\prepareOutput().
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 _lookupObjId($a_id)
static _lookupType($a_id, $a_reference=false)
lookup object type
static getInstance()
Get instance.
The documentation for this class was generated from the following file: