Lines Matching defs:tree
123 // build the namespace tree structure
126 $tree = $this->_tree($ns_acmenu, $level);
127 $tree = $this->_sort_ns_pg($tree);
139 // print the namespace tree structure
149 $this->_print($renderer, $tree, $sub_ns, $open_items);
214 * Build the namespace tree structure.
223 * the indentation level from which start to build the tree structure
224 * @return array $tree
225 * the namespace tree, in the form:
254 $tree = array();
268 $tree[] = array("heading" => $heading,
285 $tree[] = array("heading" => $heading,
291 $tree[] = array("heading" => $heading,
301 return $tree;
336 * Print the namespace tree structure.
340 * @param array $tree
341 * the namespace tree, in the form:
380 private function _print($renderer, $tree, $sub_ns, $open_items)
383 foreach ($tree as $key => $val) {
426 * Sort the tree namespace in ascending order.
428 * The tree is sorted in this order:
432 * @param array $tree
433 * the namespace tree, in the form:
458 * @return array $tree
459 * the tree namespace sorted
461 private function _sort_ns_pg($tree)
467 foreach ($tree as $key => $val) {
477 $tree = array_merge($ns, $pg);
478 foreach ($tree as $key => $array_val) {
480 unset($tree[$key]);
481 array_unshift($tree, $array_val);
485 return $tree;