5include_once(
"./Services/Skill/classes/class.ilBasicSkillTemplate.php");
 
    6include_once(
"./Services/Skill/classes/class.ilBasicSkillGUI.php");
 
   27                $this->tref_id = $a_tref_id;
 
   29                $ilCtrl->saveParameter($this, array(
"obj_id", 
"level_id"));
 
   31                parent::__construct($a_node_id);
 
   51                include_once(
"Services/Form/classes/class.ilPropertyFormGUI.php");
 
   56                $ti->setMaxLength(200);
 
   58                $ti->setRequired(
true);
 
   59                $this->form->addItem($ti);
 
   65                $ni->setRequired(
true);
 
   66                $this->form->addItem($ni);
 
   71                        if ($a_mode == 
"create")
 
   73                                $this->form->addCommandButton(
"save", 
$lng->txt(
"save"));
 
   74                                $this->form->addCommandButton(
"cancelSave", 
$lng->txt(
"cancel"));
 
   75                                $this->form->setTitle(
$lng->txt(
"skmg_create_skll"));
 
   78                                $this->form->addCommandButton(
"update", 
$lng->txt(
"save"));
 
   79                                $this->form->setTitle(
$lng->txt(
"skmg_edit_skll"));
 
   84                $this->form->setFormAction(
$ilCtrl->getFormAction($this));
 
   95                $ilTabs->clearTargets();
 
   96                $ilHelp->setScreenIdComponent(
"skmg_lev");
 
   97                $ilTabs->setBackTarget(
$lng->txt(
"skmg_skill_levels"),
 
   98                        $ilCtrl->getLinkTarget($this, 
"edit"));
 
  100                if (
$_GET[
"level_id"] > 0)
 
  102                        if ($this->tref_id == 0)
 
  104                                $ilTabs->addTab(
"level_settings",
 
  105                                        $lng->txt(
"settings"),
 
  106                                        $ilCtrl->getLinkTarget($this, 
"editLevel"));
 
  110                                $ilTabs->addTab(
"level_resources",
 
  111                                        $lng->txt(
"skmg_resources"),
 
  112                                        $ilCtrl->getLinkTarget($this, 
"showLevelResources"));
 
  125                if (
$_GET[
"level_id"] > 0)
 
  127                        $tpl->setTitle(
$lng->txt(
"skmg_skill_level").
": ".
 
  132                        $tpl->setTitle(
$lng->txt(
"skmg_skill_level"));                  
 
  135                include_once(
"./Services/Skill/classes/class.ilSkillTree.php");
 
  137                $path = $tree->getPathFull($this->node_object->getId());
 
  139                foreach (
$path as $p)
 
  141                        if (in_array($p[
"type"], array(
"scat", 
"skll")))
 
  143                                $desc.= $sep.$p[
"title"];
 
  147                $tpl->setDescription($desc);
 
  151                        0, 
"sktp", 
"", 
false));
 
  165                $ilTabs->clearTargets();
 
  166                $ilHelp->setScreenIdComponent(
"skmg_sktp");
 
  168                if ($this->tref_id == 0)
 
  170                        $ilTabs->setBackTarget(
$lng->txt(
"skmg_skill_templates"),
 
  171                                $ilCtrl->getLinkTargetByClass(
"ilobjskillmanagementgui", 
"editSkillTemplates"));
 
  174                if (is_object($this->node_object))
 
  176                        if ($this->tref_id == 0)
 
  178                                $tpl->setTitle(
$lng->txt(
"skmg_skill_template").
": ".
 
  179                                        $this->node_object->getTitle());
 
  184                                        $this->node_object->getTitle());                        
 
  188                        $ilTabs->addTab(
"levels", 
$lng->txt(
"skmg_skill_levels"),
 
  189                                $ilCtrl->getLinkTarget($this, 
'edit'));
 
  192                        if ($this->tref_id == 0)
 
  194                                $ilTabs->addTab(
"properties", 
$lng->txt(
"settings"),
 
  195                                        $ilCtrl->getLinkTarget($this, 
'editProperties'));
 
  204                        $ilTabs->activateTab($a_tab);
 
  206                        parent::setTitleIcon();
 
  212                        $tpl->setTitle(
$lng->txt(
"skmg_skill"));
 
  213                        $tpl->setDescription(
"");
 
  228                $it->setTitle($this->form->getInput(
"title"));
 
  229                $it->setOrderNr($this->form->getInput(
"order_nr"));
 
  232                $this->node_object = $it;
 
  242                $ilCtrl->setParameterByClass(
"ilbasicskilltemplategui", 
"obj_id",
 
  243                        $this->node_object->getId());
 
  244                $ilCtrl->redirectByClass(
"ilbasicskilltemplategui", 
"edit");
 
  268                                if ($this->tref_id == 0)
 
  270                                        $ilToolbar->addButton(
$lng->txt(
"skmg_add_level"),
 
  271                                                $ilCtrl->getLinkTarget($this, 
"addLevel"));
 
  276                include_once(
"./Services/Skill/classes/class.ilSkillLevelTableGUI.php");
 
  278                $tpl->setContent($table->getHTML());
 
  290                if ($this->tref_id > 0)
 
  292                        return parent::showUsage();
 
  299                include_once(
"./Services/Skill/classes/class.ilSkillUsage.php");
 
  301                $usages = $usage_info->getAllUsagesOfTemplate($this->base_skill_id);
 
  304                include_once(
"./Services/Skill/classes/class.ilSkillUsageTableGUI.php");
 
  305                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.