public function addChild(INabuDataObjectTreeNode $child)
    {
        $retval = $this->nb_tree_child_list->addItem($child);
        $child->setParent($this);

        return $retval;
    }
public function addChild(INabuDataObjectTreeNode $child)
    {
        $retval = $this->nb_tree_child_list->addItem($child);
        $child->setParent($this);

        return $retval;
    }
public function addChild ( INabuDataObjectTreeNode $ child ) { $ retval = $ this -> nb_tree_child_list -> addItem ( $ child ) ; $ child -> setParent ( $ this ) ; return $ retval ; }
Add a child if not exists. If child is in a deep level then looks for their parent level to connect both
instances.
@param CNabuDataObject $child The child to be added.
@return CNabuDataObject If child is added then returns the added instance else returns null.
Add a child if not exists . If child is in a deep level then looks for their parent level to connect both instances .