4 include_once(
"./Services/Skill/classes/class.ilVirtualSkillTreeExplorerGUI.php");
21 parent::__construct(
"skill_exp", $a_parent_obj, $a_parent_cmd);
40 $a_parent_id_parts = explode(
":", $a_node[
"id"]);
41 $a_parent_skl_tree_id = $a_parent_id_parts[0];
42 $a_parent_skl_template_tree_id = $a_parent_id_parts[1];
48 if ($a_node[
"type"] ==
"skrt")
50 $title = $lng->txt(
"skmg_skills");
54 if ($a_node[
"type"] ==
"sktr")
56 include_once(
"./Services/Skill/classes/class.ilSkillTemplateReference.php");
58 $title.=
" (".ilSkillTreeNode::_lookupTitle($tid).
")";
64 if ($a_parent_skl_template_tree_id == 0 || $a_node[
"type"] ==
"sktr")
66 $title =
"<u>".$title.
"</u>";
71 if ($this->vtree->isOutdated($a_node[
"id"]))
73 $title =
"<span class='light'>".$title.
"</span>";
87 $a_parent_id_parts = explode(
":", $a_node[
"id"]);
88 $a_parent_skl_tree_id = $a_parent_id_parts[0];
89 $a_parent_skl_template_tree_id = $a_parent_id_parts[1];
93 if ($a_node[
"type"] ==
"skrt")
99 if (in_array($a_node[
"type"],
array(
"skll",
"scat",
"sctr",
"sktr",
"sctp",
"sktp")))
102 ($this->vtree->isDraft($a_node[
"id"]) || $this->vtree->isOutdated($a_node[
"id"])));
121 $id_parts = explode(
":", $a_node[
"id"]);
122 if ($id_parts[1] == 0)
125 $skill_id = $a_node[
"id"];
131 $tref_id = $id_parts[0];
132 $skill_id = $id_parts[1];
135 if (
$_GET[
"obj_id"] ==
"" && $a_node[
"type"] ==
"skrt")
140 if ($skill_id ==
$_GET[
"obj_id"] &&
141 (
$_GET[
"tref_id"] == $tref_id))
158 $id_parts = explode(
":", $a_node[
"id"]);
159 if ($id_parts[1] == 0)
162 $skill_id = $a_node[
"id"];
168 $tref_id = $id_parts[0];
169 $skill_id = $id_parts[1];
173 "skrt" =>
"ilskillrootgui",
174 "scat" =>
"ilskillcategorygui",
175 "sktr" =>
"ilskilltemplatereferencegui",
176 "skll" =>
"ilbasicskillgui",
177 "sktp" =>
"ilbasicskilltemplategui",
178 "sctp" =>
"ilskilltemplatecategorygui" 182 "skrt" =>
"listSkills",
183 "scat" =>
"listItems",
184 "sktr" =>
"listItems",
187 "sctp" =>
"listItems" 190 $gui_class = $gui_class[$a_node[
"type"]];
193 $ilCtrl->setParameterByClass($gui_class,
"tref_id", $tref_id);
194 $ilCtrl->setParameterByClass($gui_class,
"obj_id", $skill_id);
195 $ret = $ilCtrl->getLinkTargetByClass($gui_class,
$cmd);
196 $ilCtrl->setParameterByClass($gui_class,
"obj_id",
$_GET[
"obj_id"]);
197 $ilCtrl->setParameterByClass($gui_class,
"tref_id",
$_GET[
"tref_id"]);
setShowDraftNodes($a_val)
Set show draft nodes.
static _lookupSelfEvaluation($a_obj_id)
Lookup self evaluation.
static getIconPath($a_obj_id, $a_type, $a_size="", $a_status=0)
Get icon path.
setSkipRootNode($a_val)
Set skip root node.
isNodeClickable($a_node)
Is clickable.
setShowOutdatedNodes($a_val)
Set show outdated nodes.
getNodeHref($a_node)
Get href for node.
static getImagePath($img, $module_path="", $mode="output", $offline=false)
get image path (for images located in a template directory)
static _lookupTemplateId($a_obj_id)
Lookup template ID.
Create styles array
The data for the language used.
isNodeHighlighted($a_node)
Is node highlighted?
__construct($a_parent_obj, $a_parent_cmd)
Constructor.
getNodeIcon($a_node)
Get node content.
Explorer class that works on tree objects (Services/Tree)
getNodeContent($a_node)
Get node content.
Virtual skill tree explorer.