/** * Set header for skill * * @param * @return */ function setTabs($a_tab) { global $ilTabs, $ilCtrl, $tpl, $lng, $ilHelp; $ilTabs->clearTargets(); $ilHelp->setScreenIdComponent("skmg_sktp"); if ($this->tref_id == 0) { $ilTabs->setBackTarget($lng->txt("skmg_skill_templates"), $ilCtrl->getLinkTargetByClass("ilobjskillmanagementgui", "editSkillTemplates")); } if (is_object($this->node_object)) { if ($this->tref_id == 0) { $tpl->setTitle($lng->txt("skmg_skill_template") . ": " . $this->node_object->getTitle()); } else { $tpl->setTitle($this->node_object->getTitle()); } // levels $ilTabs->addTab("levels", $lng->txt("skmg_skill_levels"), $ilCtrl->getLinkTarget($this, 'edit')); if ($this->tref_id > 0) { // usage $this->addUsageTab($ilTabs); } // properties if ($this->tref_id == 0) { $ilTabs->addTab("properties", $lng->txt("settings"), $ilCtrl->getLinkTarget($this, 'editProperties')); } $ilTabs->activateTab($a_tab); parent::setTitleIcon(); $this->setSkillNodeDescription(); } else { $tpl->setTitle($lng->txt("skmg_skill")); $tpl->setDescription(""); } }
/** * Set header for skill * * @param * @return */ function setSkillHead($a_tab) { global $ilTabs, $ilCtrl, $tpl, $lng; $ilTabs->clearTargets(); $ilTabs->setBackTarget($lng->txt("skmg_skill_templates"), $ilCtrl->getLinkTargetByClass("ilobjskillmanagementgui", "editSkillTemplates")); if (is_object($this->node_object)) { $tpl->setTitle($lng->txt("skmg_skill_template") . ": " . $this->node_object->getTitle()); // levels $ilTabs->addTab("levels", $lng->txt("skmg_skill_levels"), $ilCtrl->getLinkTarget($this, 'edit')); // properties $ilTabs->addTab("properties", $lng->txt("settings"), $ilCtrl->getLinkTarget($this, 'editProperties')); $ilTabs->activateTab($a_tab); //$tpl->setTitleIcon(ilUtil::getImagePath("icon_sktp_b.png"), $lng->txt("skmg_skill_template")); parent::setTitleIcon(); $this->setSkillNodeDescription(); } else { $tpl->setTitle($lng->txt("skmg_skill")); $tpl->setDescription(""); } }