4 require_once(
'Services/Tree/classes/class.ilTree.php');
 
    5 require_once(
'Services/OrgUnit/classes/class.ilOrgUnit.php');
 
   29                 $this->table_tree                       = 
'org_unit_tree';
 
   30                 $this->table_obj_data           = 
'org_unit_data';
 
   31                 $this->table_obj_reference      = 
'';
 
   33                 $this->tree_pk                  = 
'tree';
 
   34                 $this->obj_pk                   = 
'ou_id';
 
   48                 foreach($nodes as &$node)
 
   54                                 $unit->setParent($index[$node[
'parent']]);
 
   55                                 $index[$node[
'parent']]->addChild($unit);
 
   57                         else $root_unit = $unit;
 
   60                 $root_unit->sortChilds();