ILIAS  release_4-3 Revision
 All Data Structures Namespaces Files Functions Variables Groups Pages
ilMemberViewGUI Class Reference

Show member view switch More...

+ Collaboration diagram for ilMemberViewGUI:

Static Public Member Functions

static showMemberViewSwitch ($a_ref_id)
 Show member view switch.

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
int$a_ref_id

Definition at line 39 of file class.ilMemberViewGUI.php.

References $ilCtrl, $lng, $tpl, ilObject\_lookupObjId(), ilObject\_lookupType(), and ilMemberViewSettings\getInstance().

Referenced by ilContainerGUI\prepareOutput().

{
global $ilAccess, $ilCtrl;
if(!$settings->isEnabled())
{
return false;
}
global $tpl,$tree,$lng,$ilTabs;
// No course or group in path => aborting
if(!$tree->checkForParentType($a_ref_id, 'crs') and
!$tree->checkForParentType($a_ref_id, 'grp'))
{
return false;
}
// TODO: check edit_permission
$active = $settings->isActive();
if(($type == 'crs' or $type == 'grp') and $ilAccess->checkAccess('write','',$a_ref_id))
{
$ilCtrl->setParameterByClass("ilrepositorygui", "ref_id", $a_ref_id);
$ilCtrl->setParameterByClass("ilrepositorygui", "mv", "1");
$ilCtrl->setParameterByClass("ilrepositorygui", "set_mode", "flat");
$ilTabs->addNonTabbedLink("members_view",
$lng->txt('mem_view_activate'),
$ilCtrl->getLinkTargetByClass("ilrepositorygui", "frameset")
);
$ilCtrl->clearParametersByClass("ilrepositorygui");
return true;
}
return true;
}

+ Here is the call graph for this function:

+ Here is the caller graph for this function:


The documentation for this class was generated from the following file: