5include_once(
"./Services/Skill/classes/class.ilBasicSkillTemplate.php");
 
    6include_once(
"./Services/Skill/classes/class.ilBasicSkillGUI.php");
 
   57        $this->ctrl = 
$DIC->ctrl();
 
   58        $this->lng = 
$DIC->language();
 
   59        $this->tabs = 
$DIC->tabs();
 
   60        $this->tpl = 
$DIC[
"tpl"];
 
   61        $this->help = 
$DIC[
"ilHelp"];
 
   62        $this->toolbar = 
$DIC->toolbar();
 
   65        $this->tref_id = $a_tref_id;
 
   67        $ilCtrl->saveParameter($this, array(
"obj_id", 
"level_id"));
 
   69        parent::__construct($a_node_id);
 
   90        include_once(
"Services/Form/classes/class.ilPropertyFormGUI.php");
 
   95        $ti->setMaxLength(200);
 
   97        $ti->setRequired(
true);
 
   98        $this->form->addItem($ti);
 
  102        $ni->setInfo(
$lng->txt(
"skmg_order_nr_info"));
 
  103        $ni->setMaxLength(6);
 
  105        $ni->setRequired(
true);
 
  106        if ($a_mode == 
"create") {
 
  107            include_once(
"./Services/Skill/classes/class.ilSkillTree.php");
 
  109            $max = 
$tree->getMaxOrderNr((
int) 
$_GET[
"obj_id"], 
true);
 
  110            $ni->setValue($max + 10);
 
  112        $this->form->addItem($ni);
 
  116            if ($a_mode == 
"create") {
 
  117                $this->form->addCommandButton(
"save", 
$lng->txt(
"save"));
 
  118                $this->form->addCommandButton(
"cancelSave", 
$lng->txt(
"cancel"));
 
  119                $this->form->setTitle(
$lng->txt(
"skmg_create_skll"));
 
  121                $this->form->addCommandButton(
"update", 
$lng->txt(
"save"));
 
  122                $this->form->setTitle(
$lng->txt(
"skmg_edit_skll"));
 
  126        $ilCtrl->setParameter($this, 
"obj_id", 
$_GET[
"obj_id"]);
 
  127        $this->form->setFormAction(
$ilCtrl->getFormAction($this));
 
  142        $ilTabs->clearTargets();
 
  143        $ilHelp->setScreenIdComponent(
"skmg_lev");
 
  144        $ilTabs->setBackTarget(
 
  145            $lng->txt(
"skmg_skill_levels"),
 
  146            $ilCtrl->getLinkTarget($this, 
"edit")
 
  149        if (
$_GET[
"level_id"] > 0) {
 
  150            if ($this->tref_id == 0) {
 
  153                    $lng->txt(
"settings"),
 
  154                    $ilCtrl->getLinkTarget($this, 
"editLevel")
 
  159                    $lng->txt(
"skmg_resources"),
 
  160                    $ilCtrl->getLinkTarget($this, 
"showLevelResources")
 
  174        if (
$_GET[
"level_id"] > 0) {
 
  175            $tpl->setTitle(
$lng->txt(
"skmg_skill_level") . 
": " .
 
  178            $tpl->setTitle(
$lng->txt(
"skmg_skill_level"));
 
  181        include_once(
"./Services/Skill/classes/class.ilSkillTree.php");
 
  183        $path = 
$tree->getPathFull($this->node_object->getId());
 
  185        foreach (
$path as $p) {
 
  186            if (in_array($p[
"type"], array(
"scat", 
"skll"))) {
 
  187                $desc.= $sep . $p[
"title"];
 
  191        $tpl->setDescription($desc);
 
  217        $ilTabs->clearTargets();
 
  218        $ilHelp->setScreenIdComponent(
"skmg_sktp");
 
  220        if ($this->tref_id == 0) {
 
  221            $ilTabs->setBackTarget(
 
  222                $lng->txt(
"skmg_skill_templates"),
 
  223                $ilCtrl->getLinkTargetByClass(
"ilobjskillmanagementgui", 
"editSkillTemplates")
 
  227        if (is_object($this->node_object)) {
 
  228            if ($this->tref_id == 0) {
 
  229                $tpl->setTitle(
$lng->txt(
"skmg_skill_template") . 
": " .
 
  230                    $this->node_object->getTitle());
 
  233                    $this->node_object->getTitle()
 
  240                $lng->txt(
"skmg_skill_levels"),
 
  241                $ilCtrl->getLinkTarget($this, 
'edit')
 
  245            if ($this->tref_id == 0) {
 
  248                    $lng->txt(
"settings"),
 
  249                    $ilCtrl->getLinkTarget($this, 
'editProperties')
 
  259            $ilTabs->activateTab($a_tab);
 
  261            parent::setTitleIcon();
 
  265            $tpl->setTitle(
$lng->txt(
"skmg_skill"));
 
  266            $tpl->setDescription(
"");
 
  280        $it->setTitle($this->form->getInput(
"title"));
 
  281        $it->setOrderNr($this->form->getInput(
"order_nr"));
 
  284        $this->node_object = $it;
 
  295            "ilbasicskilltemplategui",
 
  297            $this->node_object->getId()
 
  299        $ilCtrl->redirectByClass(
"ilbasicskilltemplategui", 
"edit");
 
  321                if ($this->tref_id == 0) {
 
  322                    $ilToolbar->addButton(
 
  323                        $lng->txt(
"skmg_add_level"),
 
  324                        $ilCtrl->getLinkTarget($this, 
"addLevel")
 
  330        include_once(
"./Services/Skill/classes/class.ilSkillLevelTableGUI.php");
 
  344        if ($this->tref_id > 0) {
 
  345            return parent::showUsage();
 
  352        include_once(
"./Services/Skill/classes/class.ilSkillUsage.php");
 
  354        $usages = $usage_info->getAllUsagesOfTemplate($this->base_skill_id);
 
  357        include_once(
"./Services/Skill/classes/class.ilSkillUsageTableGUI.php");
 
  358        foreach ($usages as $k => $usage) {
 
An exception for terminatinating execution or to throw for unit testing.
Basic skill template GUI class.
setLevelHead()
Set header for level.
__construct($a_node_id=0, $a_tref_id=0)
Constructor.
showUsage()
Show skill usage.
setTabs($a_tab="")
Set header for skill.
initForm($a_mode="edit")
Init form.
static lookupLevelTitle($a_id)
Lookup level title.
setSkillNodeDescription()
Set skill node description.
addUsageTab($a_tabs)
Add usage tab.
checkPermissionBool($a_perm)
Check permission pool.
static getIconPath($a_obj_id, $a_type, $a_size="", $a_status=0)
Get icon path.
static putInTree($a_obj, $a_parent_id="", $a_target_node_id="")
Put this object into the skill tree.
TableGUI class for skill usages.
This class represents a text property in a property form.
static sendInfo($a_info="", $a_keep=false)
Send Info Message to Screen.
if(empty($password)) $table