5 require_once
'Services/Taxonomy/classes/class.ilTaxonomyTree.php';
24 parent::__construct($taxonomyId);
33 $this->orderingFieldName =
'order_nr';
38 $this->orderingFieldName =
'title';
51 foreach($pathNodes as
$n)
53 if( strlen($pathString) )
58 switch($this->orderingFieldName)
61 $pathString .= sprintf(
"%0{$this->maxOrderValueLength}d", (
int)$n[$this->orderingFieldName]);
76 if( !isset($this->pathNodesByNodeCache[$nodeId]) )
78 $this->pathNodesByNodeCache[$nodeId] = $this->
getPathFull($nodeId);
81 return $this->pathNodesByNodeCache[$nodeId];
90 $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.
Create styles array
The data for the language used.
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