19 declare(strict_types=1);
46 $this->orderingFieldName =
'order_nr';
51 $this->orderingFieldName =
'title';
64 foreach ($pathNodes as $n) {
65 if (strlen($pathString)) {
69 switch ($this->orderingFieldName) {
71 $pathString .= sprintf(
"%0{$this->maxOrderValueLength}d", (
int) $n[$this->orderingFieldName]);
84 if (!isset($this->pathNodesByNodeCache[$nodeId])) {
85 $this->pathNodesByNodeCache[$nodeId] = $this->
getPathFull($nodeId);
88 return $this->pathNodesByNodeCache[$nodeId];
95 foreach ($nodes as $n) {
96 $l = strlen($n[$this->orderingFieldName]);
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
initOrderedTreeIndex(ilObjTaxonomy $taxonomy)
getNodeData(int $a_node_id, ?int $a_tree_pk=null)
get all information of a node.
getPathFull(int $a_endnode_id, int $a_startnode_id=0)
get path from a given startnode to a given endnode if startnode is not given the rootnode is startnod...
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
getMaxOrderValueLength($nodes)
getNodeOrderingPathString($nodeId)
__construct(Container $dic, ilPlugin $plugin)
getSubTree(array $a_node, bool $a_with_data=true, array $a_type=[])
get all nodes in the subtree under specified node