function getTabs(&$tabs_gui)
 {
     global $rbacsystem, $lng, $ilHelp;
     $ilHelp->setScreenIdComponent("root");
     $this->ctrl->setParameter($this, "ref_id", $this->ref_id);
     if ($rbacsystem->checkAccess('read', $this->ref_id)) {
         $tabs_gui->addTab('view_content', $lng->txt("content"), $this->ctrl->getLinkTarget($this, ""));
     }
     if ($rbacsystem->checkAccess('write', $this->ref_id)) {
         $force_active = $_GET["cmd"] == "edit" ? true : false;
         $tabs_gui->addTarget("settings", $this->ctrl->getLinkTarget($this, "edit"), "edit", get_class($this), "", $force_active);
     }
     // parent tabs (all container: edit_permission, clipboard, trash
     parent::getTabs($tabs_gui);
 }
 public function getTabs(&$tabs_gui)
 {
     if ($this->ilAccess->checkAccess('read', '', $this->object->getRefId())) {
         $this->tabs_gui->addTab("view_content", $this->lng->txt("content"), $this->ctrl->getLinkTarget($this, ""));
         $this->tabs_gui->addTab("info_short", "Info", $this->ctrl->getLinkTargetByClass("ilinfoscreengui", "showSummary"));
     }
     //Tabs for OrgUnits exclusive root!
     if ($this->object->getRefId() != ilObjOrgUnit::getRootOrgRefId()) {
         if (ilObjOrgUnitAccess::_checkAccessStaff($this->object->getRefId())) {
             $this->tabs_gui->addTab("orgu_staff", $this->lng->txt("orgu_staff"), $this->ctrl->getLinkTargetByClass("ilOrgUnitStaffGUI", "showStaff"));
         }
         if ($this->ilAccess->checkAccess('write', '', $this->object->getRefId())) {
             $this->tabs_gui->addTab("settings", $this->lng->txt("settings"), $this->ctrl->getLinkTargetByClass("ilTranslationGUI", "editTranslations"));
         }
         if (ilObjOrgUnitAccess::_checkAccessAdministrateUsers($this->object->getRefId())) {
             $this->tabs_gui->addTab("administrate_users", $this->lng->txt("administrate_users"), $this->ctrl->getLinkTargetByClass("ilLocalUserGUI", "index"));
         }
     }
     if ($this->ilAccess->checkAccess('write', '', $this->object->getRefId())) {
         $this->tabs_gui->addTarget('export', $this->ctrl->getLinkTargetByClass('ilorgunitexportgui', ''), 'export', 'ilorgunitexportgui');
     }
     parent::getTabs($tabs_gui);
 }
 /**
  * Get tabs
  */
 function getTabs(&$tabs_gui)
 {
     global $rbacsystem, $lng, $ilHelp, $ilAccess;
     if ($this->ctrl->getCmd() == "editPageContent") {
         return;
     }
     #$this->ctrl->setParameter($this,"ref_id",$this->ref_id);
     $ilHelp->setScreenIdComponent("cat");
     if ($rbacsystem->checkAccess('read', $this->ref_id)) {
         $force_active = $_GET["cmd"] == "" || $_GET["cmd"] == "render" ? true : false;
         $tabs_gui->addTab("view_content", $lng->txt("content"), $this->ctrl->getLinkTarget($this, ""));
         //BEGIN ChangeEvent add info tab to category object
         $force_active = $this->ctrl->getNextClass() == "ilinfoscreengui" || strtolower($_GET["cmdClass"]) == "ilnotegui" ? true : false;
         $tabs_gui->addTarget("info_short", $this->ctrl->getLinkTargetByClass(array("ilobjcategorygui", "ilinfoscreengui"), "showSummary"), array("showSummary", "", "infoScreen"), "", "", $force_active);
         //END ChangeEvent add info tab to category object
     }
     if ($rbacsystem->checkAccess('write', $this->ref_id)) {
         $force_active = $_GET["cmd"] == "edit" ? true : false;
         $tabs_gui->addTarget("settings", $this->ctrl->getLinkTarget($this, "edit"), "edit", get_class($this), "", $force_active);
     }
     include_once './Services/User/classes/class.ilUserAccountSettings.php';
     if (ilUserAccountSettings::getInstance()->isLocalUserAdministrationEnabled() and $rbacsystem->checkAccess('cat_administrate_users', $this->ref_id)) {
         $tabs_gui->addTarget("administrate_users", $this->ctrl->getLinkTarget($this, "listUsers"), "listUsers", get_class($this));
     }
     if ($ilAccess->checkAccess('write', '', $this->object->getRefId())) {
         $tabs_gui->addTarget('export', $this->ctrl->getLinkTargetByClass('ilexportgui', ''), 'export', 'ilexportgui');
     }
     // parent tabs (all container: edit_permission, clipboard, trash
     parent::getTabs($tabs_gui);
 }
 function getTabs(&$tabs_gui)
 {
     global $rbacsystem, $ilUser, $ilAccess, $lng, $ilHelp;
     $ilHelp->setScreenIdComponent("grp");
     if ($rbacsystem->checkAccess('read', $this->ref_id)) {
         $tabs_gui->addTab("view_content", $lng->txt("content"), $this->ctrl->getLinkTarget($this, ""));
     }
     if ($rbacsystem->checkAccess('visible', $this->ref_id)) {
         $tabs_gui->addTarget("info_short", $this->ctrl->getLinkTargetByClass(array("ilobjgroupgui", "ilinfoscreengui"), "showSummary"), "infoScreen", "", "", false);
     }
     if ($ilAccess->checkAccess('write', '', $this->object->getRefId())) {
         $tabs_gui->addTarget("settings", $this->ctrl->getLinkTarget($this, "edit"), array("edit", "editMapSettings"), get_class($this), "");
     }
     $is_participant = ilGroupParticipants::_isParticipant($this->ref_id, $ilUser->getId());
     // Members
     $mem_cmd = $ilAccess->checkAccess('write', '', $this->ref_id) ? "members" : "membersGallery";
     if ($mem_cmd != "membersGallery" || $is_participant) {
         $tabs_gui->addTarget("members", $this->ctrl->getLinkTarget($this, $mem_cmd), array(), get_class($this));
     }
     // learning progress
     include_once './Services/Tracking/classes/class.ilLearningProgressAccess.php';
     if (ilLearningProgressAccess::checkAccess($this->object->getRefId(), $is_participant)) {
         $tabs_gui->addTarget('learning_progress', $this->ctrl->getLinkTargetByClass(array('ilobjgroupgui', 'illearningprogressgui'), ''), '', array('illplistofobjectsgui', 'illplistofsettingsgui', 'illearningprogressgui', 'illplistofprogressgui'));
     }
     if ($ilAccess->checkAccess('write', '', $this->object->getRefId())) {
         $tabs_gui->addTarget('export', $this->ctrl->getLinkTargetByClass('ilexportgui', ''), 'export', 'ilexportgui');
     }
     /*
     if ($rbacsystem->checkAccess('write',$this->object->getRefId()))
     {
     	
     	
     	$tabs_gui->addTarget('export',
     						 $this->ctrl->getLinkTarget($this,'listExportFiles'),
     						 array('listExportFiles','exportXML','confirmDeleteExportFile','downloadExportFile'),
     						 get_class($this));
     }
     */
     // parent tabs (all container: edit_permission, clipboard, trash
     parent::getTabs($tabs_gui);
     if ($ilAccess->checkAccess('join', '', $this->object->getRefId()) and !$this->object->members_obj->isAssigned($ilUser->getId())) {
         include_once './Modules/Group/classes/class.ilGroupWaitingList.php';
         if (ilGroupWaitingList::_isOnList($ilUser->getId(), $this->object->getId())) {
             $tabs_gui->addTab('leave', $this->lng->txt('membership_leave'), $this->ctrl->getLinkTargetByClass('ilgroupregistrationgui', 'show', ''));
         } else {
             $tabs_gui->addTarget("join", $this->ctrl->getLinkTargetByClass('ilgroupregistrationgui', "show"), 'show', "");
         }
     }
     if ($ilAccess->checkAccess('leave', '', $this->object->getRefId()) and $this->object->members_obj->isMember($ilUser->getId())) {
         $tabs_gui->addTarget("grp_btn_unsubscribe", $this->ctrl->getLinkTarget($this, "leave"), '', "");
     }
 }