5 include_once(
"./Services/Table/classes/class.ilTable2GUI.php");
20 function __construct($a_parent_obj, $a_parent_cmd, $a_cskill_id)
24 include_once(
"./Services/Skill/classes/class.ilBasicSkill.php");
26 $parts = explode(
":", $a_cskill_id);
27 $this->skill_id = (int) $parts[0];
28 $this->tref_id = (int) $parts[1];
32 $this->
setData($this->skill->getLevelData());
33 $this->
setTitle($this->skill->getTitle().
", ".
34 $lng->txt(
"skmg_skill_levels"));
36 $this->
addColumn($this->lng->txt(
"title"));
37 $this->
addColumn($this->lng->txt(
"actions"));
40 $this->
setRowTemplate(
"tpl.skill_level_profile_assignment_row.html",
"Services/Skill");
50 $this->tpl->setCurrentBlock(
"cmd");
51 $this->tpl->setVariable(
"CMD", $lng->txt(
"skmg_assign_level"));
52 $ilCtrl->setParameter($this->parent_obj,
"level_id", (
int) $a_set[
"id"]);
53 $this->tpl->setVariable(
"CMD_HREF", $ilCtrl->getLinkTarget($this->parent_obj,
54 "assignLevelToProfile"));
55 $ilCtrl->setParameter($this->parent_obj,
"level_id",
$_GET[
"level_id"]);
56 $this->tpl->parseCurrentBlock();
58 $this->tpl->setVariable(
"TITLE", $a_set[
"title"]);