Show member view switch
More...
Detailed Description
Show member view switch
- Author
- Stefan Meyer <meyer.leifos.com>
- Version
- $Id$
Definition at line 31 of file class.ilMemberViewGUI.php.
Member Function Documentation
static ilMemberViewGUI::showMemberViewSwitch |
( |
|
$a_ref_id | ) |
|
|
static |
Show member view switch.
- Returns
- Parameters
-
Definition at line 39 of file class.ilMemberViewGUI.php.
References $lng, $tpl, ilObject\_lookupObjId(), ilObject\_lookupType(), and ilMemberViewSettings\getInstance().
Referenced by ilContainerGUI\prepareOutput().
{
global $ilAccess;
if(!$settings->isEnabled())
{
return false;
}
if(!$tree->checkForParentType($a_ref_id, 'crs') and
!$tree->checkForParentType($a_ref_id, 'grp'))
{
return false;
}
$active = $settings->isActive();
if(($type == 'crs' or $type == 'grp') and $ilAccess->checkAccess('edit_permission','',$a_ref_id))
{
$ilTabs->addNonTabbedLink("members_view",
$lng->txt('mem_view_activate'),
'repository.php?cmd=frameset&set_mode=flat&ref_id='.$a_ref_id.'&mv=1'
);
return true;
}
return true;
}
The documentation for this class was generated from the following file: