5 include_once(
"./Services/Table/classes/class.ilTable2GUI.php");
21 function __construct($a_parent_obj, $a_parent_cmd, $a_top_skill_id, $a_tref_id,
26 include_once
"Services/PersonalWorkspace/classes/class.ilWorkspaceTree.php";
27 include_once
"Services/PersonalWorkspace/classes/class.ilWorkspaceAccessHandler.php";
31 $this->top_skill_id = $a_top_skill_id;
32 $this->tref_id = (int) $a_tref_id;
33 $this->basic_skill_id = $a_basic_skill_id;
36 include_once
"Services/PersonalWorkspace/classes/class.ilWorkspaceTree.php";
41 include_once(
"./Services/Skill/classes/class.ilSkillTree.php");
43 $path = $stree->getPathFull($this->basic_skill_id);
47 if ($p[
"type"] !=
"skrt")
59 $this->
addColumn($this->lng->txt(
"skmg_skill_level"));
60 $this->
addColumn($this->lng->txt(
"description"),
"",
"60%");
61 $this->
addColumn($this->lng->txt(
"skmg_materials"));
62 $this->
addColumn($this->lng->txt(
"actions"));
66 $this->
setRowTemplate(
"tpl.skill_materials_row.html",
"Services/Skill");
82 include_once(
"./Services/Skill/classes/class.ilSkillTreeNodeFactory.php");
84 foreach ($this->skill->getLevelData() as $k => $v)
99 include_once(
"./Services/Skill/classes/class.ilPersonalSkill.php");
101 $ilCtrl->setParameter($this->parent_obj,
"level_id", $a_set[
"id"]);
104 $this->tpl->setCurrentBlock(
"mat");
105 $obj_id = $this->ws_tree->lookupObjectId($m[
"wsp_id"]);
106 $this->tpl->setVariable(
"MAT_TITLE",
108 $this->tpl->setVariable(
"MAT_IMG",
110 $this->tpl->setVariable(
"TXT_REMOVE", $lng->txt(
"remove"));
111 $ilCtrl->setParameter($this->parent_obj,
"wsp_id", $m[
"wsp_id"]);
112 $this->tpl->setVariable(
"HREF_REMOVE", $ilCtrl->getLinkTarget($this->parent_obj,
"removeMaterial"));
114 $obj_id = $this->ws_tree->lookupObjectId($m[
"wsp_id"]);
115 $url = $this->ws_access->getGotoLink($m[
"wsp_id"], $obj_id);
116 $this->tpl->setVariable(
"HREF_MAT", $url);
117 $this->tpl->parseCurrentBlock();
120 $this->tpl->setCurrentBlock(
"cmd");
121 $this->tpl->setVariable(
"HREF_CMD", $ilCtrl->getLinkTarget($this->parent_obj,
123 $this->tpl->setVariable(
"TXT_CMD", $lng->txt(
"skmg_assign_materials"));
124 $this->tpl->parseCurrentBlock();
125 $ilCtrl->setParameter($this->parent_obj,
"level_id",
"");
127 $this->tpl->setVariable(
"LEVEL_ID", $a_set[
"id"]);
128 $this->tpl->setVariable(
"SKILL_ID", $this->basic_skill_id);
129 $this->tpl->setVariable(
"TXT_SKILL", $a_set[
"title"]);
130 $this->tpl->setVariable(
"TXT_SKILL_DESC", $a_set[
"description"]);