src/actions/BaseEntityTreeAction.php
private static function treeGoDown($id, $data, &$hidden)
    {
        foreach ($data as $row) {
            if ($row['parent_id'] == $id) {
                if (false === in_array($row['id'], $hidden)) {
                    $hidden[] = $row['id'];
                }
                self::treeGoDown($row['id'], $data, $hidden);
            }
        }
    }
private static function treeGoDown($id, $data, &$hidden)
    {
        foreach ($data as $row) {
            if ($row['parent_id'] == $id) {
                if (false === in_array($row['id'], $hidden)) {
                    $hidden[] = $row['id'];
                }
                self::treeGoDown($row['id'], $data, $hidden);
            }
        }
    }
private static function treeGoDown ( $ id , $ data , & $ hidden ) { foreach ( $ data as $ row ) { if ( $ row [ 'parent_id' ] == $ id ) { if ( false === in_array ( $ row [ 'id' ] , $ hidden ) ) { $ hidden [ ] = $ row [ 'id' ] ; } self :: treeGoDown ( $ row [ 'id' ] , $ data , $ hidden ) ; } } }
Recursively finds all children of node with given id

@param $id
@param $data
@param $hidden
Recursively finds all children of node with given id