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");
51 if (count($this->
getData()) > 0)
79 $levels = $this->skill->getLevelData();
90 $this->tpl->setCurrentBlock(
"cmd");
91 $this->tpl->setVariable(
"TXT_CMD", $lng->txt(
"edit"));
92 $ilCtrl->setParameter($this->parent_obj,
"level_id", $a_set[
"id"]);
93 $this->tpl->setVariable(
"HREF_CMD",
94 $ilCtrl->getLinkTarget($this->parent_obj,
"editLevel"));
95 $this->tpl->parseCurrentBlock();
97 $this->tpl->setVariable(
"ID", $a_set[
"id"]);
98 $this->tpl->setVariable(
"VAL_NR", ((
int) $a_set[
"nr"]) * 10);
99 $this->tpl->setVariable(
"TXT_TITLE", $a_set[
"title"]);
100 $this->tpl->setVariable(
"TXT_DESCRIPTION", $a_set[
"description"]);