5 require_once
'Services/Taxonomy/classes/class.ilTaxonomyTree.php';
24 parent::__construct($taxonomyId);
32 $this->orderingFieldName =
'order_nr';
37 $this->orderingFieldName =
'title';
50 foreach ($pathNodes as
$n) {
51 if (strlen($pathString)) {
55 switch ($this->orderingFieldName) {
57 $pathString .= sprintf(
"%0{$this->maxOrderValueLength}d", (
int) $n[$this->orderingFieldName]);
70 if (!isset($this->pathNodesByNodeCache[$nodeId])) {
71 $this->pathNodesByNodeCache[$nodeId] = $this->
getPathFull($nodeId);
74 return $this->pathNodesByNodeCache[$nodeId];
82 $l = strlen($n[$this->orderingFieldName]);
initOrderedTreeIndex(ilObjTaxonomy $taxonomy)
getPathFull($a_endnode_id, $a_startnode_id=0)
get path from a given startnode to a given endnode if startnode is not given the rootnode is startnod...
getMaxOrderValueLength($nodes)
getRootId()
get the root id of tree public
getNodeData($a_node_id, $a_tree_pk=null)
get all information of a node.
getNodeOrderingPathString($nodeId)
getSubTree($a_node, $a_with_data=true, $a_type="")
get all nodes in the subtree under specified node
getSortingMode()
Get sorting mode.
readRootId()
read root id from database