kernel/private/classes/ezptopologicalsort.php
private function getRootNodes()
    {
        $output = array();
        foreach( $this->nodes as $node )
            if (! $node->parentCount() )
                $output[] = $node;
        return $output;
    }
private function getRootNodes()
    {
        $output = array();
        foreach( $this->nodes as $node )
            if (! $node->parentCount() )
                $output[] = $node;
        return $output;
    }
private function getRootNodes ( ) { $ output = array ( ) ; foreach ( $ this -> nodes as $ node ) if ( ! $ node -> parentCount ( ) ) $ output [ ] = $ node ; return $ output ; }
Returns a list of node objects that do not have parents.

@return array of node objects
Returns a list of node objects that do not have parents .