13 require_once(
"./Services/UIComponent/Explorer/classes/class.ilExplorer.php");
34 $this->templates = $a_templates;
53 include_once(
"./Services/Skill/classes/class.ilSkillTree.php");
55 $this->root_id = $this->tree->readRootId();
64 $this->force_open_path = array();
72 $this->force_open_path = $a_path;
86 $ilCtrl->setParameterByClass(
"ilskillrootgui",
"obj_id",
87 $this->tree->readRootId());
91 $tpl->setCurrentBlock(
"icon");
93 $tpl->setVariable(
"TXT_ALT_IMG", $lng->txt(
"skmg_skill_templates"));
94 $tpl->parseCurrentBlock();
96 $tpl->setCurrentBlock(
"link");
97 $tpl->setVariable(
"TITLE", $lng->txt(
"skmg_skill_templates"));
98 if ($this->highlighted == $this->tree->readRootId())
100 $tpl->setVariable(
"A_CLASS",
"class='il_HighlightedNode'");
102 $tpl->setVariable(
"LINK_TARGET",
103 $ilCtrl->getLinkTargetByClass(
"ilskillrootgui",
"listTemplates"));
104 $tpl->parseCurrentBlock();
108 $tpl->setCurrentBlock(
"icon");
110 $tpl->setVariable(
"TXT_ALT_IMG", $lng->txt(
"skmg_skills"));
111 $tpl->parseCurrentBlock();
113 $tpl->setCurrentBlock(
"link");
114 $tpl->setVariable(
"TITLE", $lng->txt(
"skmg_skills"));
115 if ($this->highlighted == $this->tree->readRootId())
117 $tpl->setVariable(
"A_CLASS",
"class='il_HighlightedNode'");
119 $tpl->setVariable(
"LINK_TARGET",
120 $ilCtrl->getLinkTargetByClass(
"ilskillrootgui",
"listSkills"));
121 $tpl->parseCurrentBlock();
124 $tpl->touchBlock(
"element");
126 $ilCtrl->setParameterByClass(
"ilskillrootgui",
"obj_id",
177 $ilCtrl->setParameterByClass(
"ilskillcategorygui",
"obj_id", $a_node_id);
178 $ret = $ilCtrl->getLinkTargetByClass(
"ilskillcategorygui",
"listItems");
179 $ilCtrl->setParameterByClass(
"ilskillcategorygui",
"obj_id",
$_GET[
"obj_id"]);
185 $ilCtrl->setParameterByClass(
"ilskilltemplatereferencegui",
"obj_id", $a_node_id);
186 $ret = $ilCtrl->getLinkTargetByClass(
"ilskilltemplatereferencegui",
"listItems");
187 $ilCtrl->setParameterByClass(
"ilskilltemplatereferencegui",
"obj_id",
$_GET[
"obj_id"]);
193 $ilCtrl->setParameterByClass(
"ilbasicskillgui",
"obj_id", $a_node_id);
194 $ret = $ilCtrl->getLinkTargetByClass(
"ilbasicskillgui",
"edit");
195 $ilCtrl->setParameterByClass(
"ilbasicskillgui",
"obj_id",
$_GET[
"obj_id"]);
203 $ilCtrl->setParameterByClass(
"ilbasicskilltemplategui",
"obj_id", $a_node_id);
204 $ret = $ilCtrl->getLinkTargetByClass(
"ilbasicskilltemplategui",
"edit");
205 $ilCtrl->setParameterByClass(
"ilbasicskilltemplategui",
"obj_id",
$_GET[
"obj_id"]);
211 $ilCtrl->setParameterByClass(
"ilskilltemplatecategorygui",
"obj_id", $a_node_id);
212 $ret = $ilCtrl->getLinkTargetByClass(
"ilskilltemplatecategorygui",
"listItems");
213 $ilCtrl->setParameterByClass(
"ilskilltemplatecategorygui",
"obj_id",
$_GET[
"obj_id"]);
224 if ($a_type ==
"sktr")
226 include_once(
"./Services/Skill/classes/class.ilSkillTemplateReference.php");
228 $a_title.=
" (".ilSkillTreeNode::_lookupTitle($tid).
")";
233 $a_title =
"<u>".$a_title.
"</u>";
244 if (in_array($a_obj_id, $this->force_open_path))
262 function getImage($a_name, $a_type =
"", $a_obj_id =
"")
264 if (in_array($a_type, array(
"skll",
"scat",
"sctr",
"sktr")))
279 $childs = $this->tree->getChilds($a_parent_id, $this->order_column);
281 foreach ($childs as $c)
283 $this->parent[$c[
"child"]] = $c[
"parent"];
284 if ($this->draft[$c[
"parent"]])
286 $this->draft[$c[
"child"]] =
true;