39 $this->skill_tree_manager = $DIC->skills()->internal()->manager()->getTreeManager();
40 $this->skill_tree_factory = $DIC->skills()->internal()->factory()->tree();
41 $this->tree_repo = $DIC->skills()->internal()->repo()->getTreeRepo();
50 $root_node = $this->tree->getNodeData($root_id);
53 $root_node[
"parent"] = 0;
54 $root_node[
"depth"] = 0;
55 $root_node[
"obj_id"] = 0;
65 if ($a_parent_id ===
"0") {
67 $trees = $this->skill_tree_manager->getTrees();
68 foreach ($trees as $obj_tree) {
69 $tree = $this->skill_tree_factory->getTreeById($obj_tree->getId());
76 $parent_id_parts = explode(
":", $a_parent_id);
77 $parent_skl_tree_id = (
int) $parent_id_parts[0];
78 $tree_id = $this->tree_repo->getTreeIdForNodeId($parent_skl_tree_id);
79 $this->tree = $this->skill_tree_factory->getTreeById($tree_id);
80 return parent::getChildsOfNode($a_parent_id);
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
getNodeData(int $a_node_id, ?int $a_tree_pk=null)
get all information of a node.
Global virtual skill tree.
bool $root_node_processed
SkillTreeFactory $skill_tree_factory
ilSkillTreeRepository $tree_repo
SkillTreeManager $skill_tree_manager
getNode(string $a_vtree_id)
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
getChildsOfNode(string $a_parent_id)
__construct(Container $dic, ilPlugin $plugin)
__getSubTreeRec(string $id, bool $a_only_basic)
getSubTreeForTreeId(string $a_tree_id)