38 $this->skill_tree_manager = $DIC->skills()->internal()->manager()->getTreeManager();
39 $this->skill_tree_factory = $DIC->skills()->internal()->factory()->tree();
40 $this->tree_repo = $DIC->skills()->internal()->repo()->getTreeRepo();
46 public function getNodeData(
int $a_node_id, ?
int $a_tree_pk = null): array
48 if ($a_node_id == 0) {
51 return parent::getNodeData($a_node_id, $a_tree_pk);
61 $root_node[
"parent"] = 0;
62 $root_node[
"depth"] = 0;
63 $root_node[
"obj_id"] = 0;
64 $root_node[
"child"] = 0;
77 public function getChilds(
int $a_node_id,
string $a_order =
"",
string $a_direction =
"ASC"): array
79 if ($a_node_id == 0) {
81 $trees = $this->skill_tree_manager->getTrees();
82 foreach ($trees as $obj_tree) {
83 $tree = $this->skill_tree_factory->getTreeById($obj_tree->getId());
84 $data = $tree->getNodeData($tree->readRootId());
90 return parent::getChilds($a_node_id, $a_order, $a_direction);
ilSkillTreeRepository $tree_repo
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)
SkillTreeFactory $skill_tree_factory
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
SkillTreeManager $skill_tree_manager
__construct(Container $dic, ilPlugin $plugin)
getChilds(int $a_node_id, string $a_order="", string $a_direction="ASC")