5 include_once(
"./Services/Table/classes/class.ilTable2GUI.php");
21 function __construct($a_skill_id, $a_parent_obj, $a_parent_cmd)
25 include_once(
"./Services/Skill/classes/class.ilBasicSkill.php");
26 $this->skill_id = $a_skill_id;
32 $this->
setTitle($lng->txt(
"skmg_skill_levels"));
33 $this->
setDescription($lng->txt(
"skmg_from_lower_to_higher_levels"));
36 $this->
addColumn($this->lng->txt(
"skmg_nr"));
37 $this->
addColumn($this->lng->txt(
"title"));
38 $this->
addColumn($this->lng->txt(
"description"));
41 $this->
addColumn($this->lng->txt(
"actions"));
47 $this->
setRowTemplate(
"tpl.skill_level_row.html",
"Services/Skill");
76 $levels = $this->skill->getLevelData();
87 $this->tpl->setCurrentBlock(
"cmd");
88 $this->tpl->setVariable(
"TXT_CMD", $lng->txt(
"edit"));
89 $ilCtrl->setParameter($this->parent_obj,
"level_id", $a_set[
"id"]);
90 $this->tpl->setVariable(
"HREF_CMD",
91 $ilCtrl->getLinkTarget($this->parent_obj,
"editLevel"));
92 $this->tpl->parseCurrentBlock();
94 $this->tpl->setVariable(
"ID", $a_set[
"id"]);
95 $this->tpl->setVariable(
"VAL_NR", ((
int) $a_set[
"nr"]) * 10);
96 $this->tpl->setVariable(
"TXT_TITLE", $a_set[
"title"]);
97 $this->tpl->setVariable(
"TXT_DESCRIPTION", $a_set[
"description"]);