24 require_once (
"./Services/Tree/classes/class.ilTree.php");
58 function getChilds($a_node_id, $a_order =
"", $a_direction =
"ASC")
62 if (!isset($a_node_id))
64 $message = get_class($this).
"::getChilds(): No node_id given!";
65 $this->ilErr->raiseError($message,$this->ilErr->WARNING);
80 $order_clause =
"ORDER BY ".$a_order.
" ".$a_direction;
84 $order_clause =
"ORDER BY ".$this->table_tree.
".lft";
90 SELECT * FROM ".$this->table_tree.
" ".
93 "AND ".$this->table_tree.
".".$this->tree_pk.
" = %s ".
95 array(
'integer',
'integer'),array($a_node_id,$this->tree_id));
97 $count = $ilDB->numRows($r);
101 while (
$row = $ilDB->fetchAssoc($r))
107 $childs[$count - 1][
"last"] =
true;