protected function scan_for_active_node(navigation_node $node) {
        if (!$node->check_if_active() && $node->children->count()>0) {
            foreach ($node->children as &$child) {
                $this->scan_for_active_node($child);
            }
        }
    }
protected function scan_for_active_node(navigation_node $node) {
        if (!$node->check_if_active() && $node->children->count()>0) {
            foreach ($node->children as &$child) {
                $this->scan_for_active_node($child);
            }
        }
    }
protected function scan_for_active_node ( navigation_node $ node ) { if ( ! $ node -> check_if_active ( ) && $ node -> children -> count ( ) > 0 ) { foreach ( $ node -> children as & $ child ) { $ this -> scan_for_active_node ( $ child ) ; } } }
This function recursivily scans nodes until it finds the active node or there
are no more nodes.
@param navigation_node $node
This function recursivily scans nodes until it finds the active node or there are no more nodes .