Swat/SwatGroupedFlydown.php
protected function buildDisplayTree(
        SwatTreeFlydownNode $tree,
        SwatTreeFlydownNode $parent,
        $path = array()
    ) {
        $flydown_option = $tree->getOption();
        $path[] = $flydown_option->value;
        $new_node = new SwatTreeFlydownNode($path, $flydown_option->title);

        $parent->addChild($new_node);
        foreach ($tree->getChildren() as $child) {
            $this->buildDisplayTree($child, $new_node, $path);
        }
    }
protected function buildDisplayTree(
        SwatTreeFlydownNode $tree,
        SwatTreeFlydownNode $parent,
        $path = array()
    ) {
        $flydown_option = $tree->getOption();
        $path[] = $flydown_option->value;
        $new_node = new SwatTreeFlydownNode($path, $flydown_option->title);

        $parent->addChild($new_node);
        foreach ($tree->getChildren() as $child) {
            $this->buildDisplayTree($child, $new_node, $path);
        }
    }
protected function buildDisplayTree ( SwatTreeFlydownNode $ tree , SwatTreeFlydownNode $ parent , $ path = array ( ) ) { $ flydown_option = $ tree -> getOption ( ) ; $ path [ ] = $ flydown_option -> value ; $ new_node = new SwatTreeFlydownNode ( $ path , $ flydown_option -> title ) ; $ parent -> addChild ( $ new_node ) ; foreach ( $ tree -> getChildren ( ) as $ child ) { $ this -> buildDisplayTree ( $ child , $ new_node , $ path ) ; } }
Builds this grouped flydown's display tree by copying nodes from this
grouped flydown's tree

@param SwatTreeFlydownNode $tree the source tree node to build from.
@param SwatTreeFlydownNode $parent the destination parent node to add
display tree nodes to.
@param array $path the current path of the display tree.
Builds this grouped flydown s display tree by copying nodes from this grouped flydown s tree