4 include_once(
"./Services/UIComponent/Explorer2/classes/class.ilExplorerBaseGUI.php");
32 public function __construct($a_id, $a_parent_obj, $a_parent_cmd)
36 $this->lng = $DIC->language();
37 $this->ctrl = $DIC->ctrl();
38 parent::__construct($a_id, $a_parent_obj, $a_parent_cmd);
40 include_once(
"./Services/Skill/classes/class.ilVirtualSkillTree.php");
54 $this->show_draft_nodes = $a_val;
55 $this->vtree->setIncludeDrafts($a_val);
75 $this->show_outdated_nodes = $a_val;
76 $this->vtree->setIncludeOutdated($a_val);
96 return $this->vtree->getRootNode();
107 return $a_node[
"id"];
118 return $this->vtree->getChildsOfNode($a_parent_id);
131 $a_parent_id_parts = explode(
":", $a_node[
"id"]);
132 $a_parent_skl_tree_id = $a_parent_id_parts[0];
133 $a_parent_skl_template_tree_id = $a_parent_id_parts[1];
136 $title = $a_node[
"title"];
139 if ($a_node[
"type"] ==
"skrt") {
140 $lng->txt(
"skmg_skills");
142 if ($a_node[
"type"] ==
"sktr") {
159 $a_id_parts = explode(
":", $a_node[
"id"]);
160 $a_skl_tree_id = $a_parent_id_parts[0];
161 $a_skl_template_tree_id = $a_id_parts[1];
164 if ($a_node[
"type"] ==
"skrt") {
167 $type = $a_node[
"type"];
168 if (
$type ==
"sktr") {
169 include_once(
"./Services/Skill/classes/class.ilSkillTreeNode.php");
172 if (
$type ==
"sktp") {
175 if (
$type ==
"sctp") {
196 $id_parts = explode(
":", $a_node[
"id"]);
197 if ($id_parts[1] == 0) {
199 $skill_id = $a_node[
"id"];
202 $skill_id = $id_parts[1] .
":" . $id_parts[0];
setShowDraftNodes($a_val)
Set show draft nodes.
setSkipRootNode($a_val)
Set skip root node.
getNodeId($a_node)
Get node id.
isNodeClickable($a_node)
Is clickable.
__construct($a_id, $a_parent_obj, $a_parent_cmd)
Constructor.
static _lookupType($a_obj_id)
Lookup Type.
setShowOutdatedNodes($a_val)
Set show outdated nodes.
getShowDraftNodes()
Get show draft nodes.
getNodeHref($a_node)
Get href for node.
getShowOutdatedNodes()
Get show outdated nodes.
static getImagePath($img, $module_path="", $mode="output", $offline=false)
get image path (for images located in a template directory)
getNodeIcon($a_node)
Get node icon.
getChildsOfNode($a_parent_id)
Get childs of node.
getNodeContent($a_node)
Get node content.
Virtual skill tree explorer.
getRootNode()
Get root node.