4 include_once(
"./Services/UIComponent/Explorer2/classes/class.ilTreeExplorerGUI.php");
24 include_once(
"./Services/Skill/classes/class.ilSkillTree.php");
26 parent::__construct(
"skill_exp", $a_parent_obj, $a_parent_cmd,
$tree);
55 $childs = parent::getChildsOfNode($a_parent_id);
57 include_once(
"./Services/Skill/classes/class.ilSkillTreeNode.php");
60 $this->
parent[$c[
"child"]] = $c[
"parent"];
61 if ($this->draft[$c[
"parent"]])
63 $this->draft[$c[
"child"]] =
true;
87 if ($a_node[
"type"] ==
"skrt")
89 $title = $lng->txt(
"skmg_skill_templates");
93 if ($a_node[
"type"] ==
"sktr")
95 include_once(
"./Services/Skill/classes/class.ilSkillTemplateReference.php");
97 $title.=
" (".ilSkillTreeNode::_lookupTitle($tid).
")";
101 $title =
"<u>".$title.
"</u>";
117 if ($a_node[
"type"] ==
"skrt")
123 if (in_array($a_node[
"type"],
array(
"skll",
"scat",
"sctr",
"sktr")))
126 $this->draft[$a_node[
"child"]]);
145 if ($a_node[
"child"] ==
$_GET[
"obj_id"] ||
146 (
$_GET[
"obj_id"] ==
"" && $a_node[
"type"] ==
"skrt"))
163 switch($a_node[
"type"])
167 $ilCtrl->setParameterByClass(
"ilskillrootgui",
"obj_id", $a_node[
"child"]);
168 $ret = $ilCtrl->getLinkTargetByClass(
"ilskillrootgui",
"listTemplates");
169 $ilCtrl->setParameterByClass(
"ilskillrootgui",
"obj_id",
$_GET[
"obj_id"]);
175 $ilCtrl->setParameterByClass(
"ilbasicskilltemplategui",
"obj_id", $a_node[
"child"]);
176 $ret = $ilCtrl->getLinkTargetByClass(
"ilbasicskilltemplategui",
"edit");
177 $ilCtrl->setParameterByClass(
"ilbasicskilltemplategui",
"obj_id",
$_GET[
"obj_id"]);
183 $ilCtrl->setParameterByClass(
"ilskilltemplatecategorygui",
"obj_id", $a_node[
"child"]);
184 $ret = $ilCtrl->getLinkTargetByClass(
"ilskilltemplatecategorygui",
"listItems");
185 $ilCtrl->setParameterByClass(
"ilskilltemplatecategorygui",
"obj_id",
$_GET[
"obj_id"]);
getRootNode()
Get root node.
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.
Explorer class that works on tree objects (Services/Tree)
__construct($a_parent_obj, $a_parent_cmd)
Constructor.
getChildsOfNode($a_parent_id)
Get childs of node.
setTypeWhiteList($a_val)
Set type white list.
isNodeHighlighted($a_node)
Is node highlighted?
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.
getNodeContent($a_node)
Get node content.
Explorer class that works on tree objects (Services/Tree)
setOrderField($a_val, $a_numeric=false)
Set order field.
getNodeIcon($a_node)
Get node content.
static _lookupStatus($a_obj_id)
Lookup Status.