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"];
115 return parent::getDomNodeIdForNodeId(str_replace(
":",
"_", $node_id));
123 $id = parent::getNodeIdForDomNodeId($a_dom_node_id);
124 return str_replace(
"_",
":",
$id);
136 return $this->vtree->getChildsOfNode($a_parent_id);
149 $a_parent_id_parts = explode(
":", $a_node[
"id"]);
150 $a_parent_skl_tree_id = $a_parent_id_parts[0];
151 $a_parent_skl_template_tree_id = $a_parent_id_parts[1];
154 $title = $a_node[
"title"];
157 if ($a_node[
"type"] ==
"skrt") {
158 $lng->txt(
"skmg_skills");
160 if ($a_node[
"type"] ==
"sktr") {
177 $a_id_parts = explode(
":", $a_node[
"id"]);
178 $a_skl_template_tree_id = $a_id_parts[1];
181 if ($a_node[
"type"] ==
"skrt") {
184 $type = $a_node[
"type"];
185 if (
$type ==
"sktr") {
186 include_once(
"./Services/Skill/classes/class.ilSkillTreeNode.php");
189 if (
$type ==
"sktp") {
192 if (
$type ==
"sctp") {
213 $id_parts = explode(
":", $a_node[
"id"]);
214 if ($id_parts[1] == 0) {
216 $skill_id = $a_node[
"id"];
219 $skill_id = $id_parts[1] .
":" . $id_parts[0];
246 if (
$lng->exists(
"skmg_" . $a_node[
"type"])) {
247 return $lng->txt(
"skmg_" . $a_node[
"type"]);
250 return $lng->txt($a_node[
"type"]);
setShowDraftNodes($a_val)
Set show draft nodes.
getNodeIconAlt($a_node)
Get node icon alt attribute.
setSkipRootNode($a_val)
Set skip root node.
getDomNodeIdForNodeId($node_id)
if(!array_key_exists('StateId', $_REQUEST)) $id
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.
getNodeIdForDomNodeId($a_dom_node_id)
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.