5 include_once(
"./Services/Skill/classes/class.ilSkillTreeNode.php");
15 require_once(
"./Services/UIComponent/Explorer/classes/class.ilExplorer.php");
36 $this->templates = $a_templates;
47 include_once(
"./Services/Skill/classes/class.ilSkillTree.php");
49 $this->root_id = $this->tree->readRootId();
58 $this->force_open_path = array();
60 $this->all_nodes = $this->tree->getSubTree($this->tree->getNodeData($this->root_id));
61 foreach ($this->all_nodes as
$n)
63 $this->node[$n[
"child"]] =
$n;
64 $this->child_nodes[$n[
"parent"]][] =
$n;
65 $this->parent[$n[
"child"]] = $n[
"parent"];
82 $this->selectable[$a_node_id] =
true;
83 $this->selectable[$this->parent[$a_node_id]] =
true;
89 if ($this->selectable[$a_node_id] &&
92 $this->selectable_child_nodes[$this->node[$a_node_id][
"parent"]][] =
93 $this->node[$a_node_id];
103 $this->force_open_path = $a_path;
117 $ilCtrl->setParameterByClass(
"ilskillrootgui",
"obj_id",
118 $this->tree->readRootId());
120 $tpl->setCurrentBlock(
"icon");
122 $tpl->setVariable(
"TXT_ALT_IMG", $lng->txt(
"skmg_skills"));
123 $tpl->parseCurrentBlock();
125 $tpl->setCurrentBlock(
"link");
126 $tpl->setVariable(
"TITLE", $lng->txt(
"skmg_skills"));
127 if ($this->highlighted == $this->tree->readRootId())
129 $tpl->setVariable(
"A_CLASS",
"class='il_HighlightedNode'");
131 $tpl->setVariable(
"LINK_TARGET",
132 $ilCtrl->getLinkTargetByClass(
"ilskillrootgui",
"listSkills"));
133 $tpl->parseCurrentBlock();
135 $tpl->touchBlock(
"element");
137 $ilCtrl->setParameterByClass(
"ilskillrootgui",
"obj_id",
188 $ilCtrl->setParameterByClass(
"ilpersonalskillsgui",
"obj_id", $a_node_id);
189 $ret = $ilCtrl->getLinkTargetByClass(
"ilpersonalskillsgui",
"addSkill");
190 $ilCtrl->setParameterByClass(
"ilpersonalskillsgui",
"obj_id",
$_GET[
"obj_id"]);
202 if ($a_type ==
"sktr")
204 include_once(
"./Services/Skill/classes/class.ilSkillTemplateReference.php");
222 if (in_array($a_obj_id, $this->force_open_path))
245 $this->tree->getMaximumDepth();
256 if (is_array($this->selectable_child_nodes[$a_parent_id]))
258 $childs = $this->selectable_child_nodes[$a_parent_id];
273 if (is_array($this->child_nodes[$a_parent_id]))
275 return $this->child_nodes[$a_parent_id];
283 function getImage($a_name, $a_type =
"", $a_obj_id =
"")
285 if (in_array($a_type, array(
"sktr")))