24require_once(
"./Services/Tree/classes/class.ilTree.php");
 
   59    public function getChilds($a_node_id, $a_order = 
"", $a_direction = 
"ASC")
 
   64        if (!isset($a_node_id)) {
 
   67            throw new InvalidArgumentException(
$message);
 
   80        if (!empty($a_order)) {
 
   81            $order_clause = 
"ORDER BY " . $a_order . 
" " . $a_direction;
 
   83            $order_clause = 
"ORDER BY " . $this->table_tree . 
".lft";
 
   90                        SELECT * FROM " . $this->table_tree . 
" " .
 
   92            "WHERE parent = %s " .
 
   93            "AND " . $this->table_tree . 
"." . $this->tree_pk . 
" = %s " .
 
   95            array(
'integer',
'integer'),
 
   96            array($a_node_id,$this->tree_id)
 
   99        $count = 
$ilDB->numRows($r);
 
  102            while ($row = 
$ilDB->fetchAssoc($r)) {
 
  107            $childs[$count - 1][
"last"] = 
true;
 
An exception for terminatinating execution or to throw for unit testing.
getChilds($a_node_id, $a_order="", $a_direction="ASC")
get child nodes of given node @access public
__construct($a_id=0)
Constructor.
Tree class data representation in hierachical trees using the Nested Set Model with Gaps by Joe Celco...
setTreeTablePK($a_column_name)
set column containing primary key in tree table @access public
setTableNames($a_table_tree, $a_table_obj_data, $a_table_obj_reference="")
set table names The primary key of the table containing your object_data must be 'obj_id' You may use...
fetchNodeData($a_row)
get data of parent node from tree and object_data @access private
buildJoin()
build join depending on table settings @access private
__construct(Container $dic, ilPlugin $plugin)
@inheritDoc