public function find_active_node() {
        if ($this->isactive) {
            return $this;
        } else {
            foreach ($this->children as &$child) {
                $outcome = $child->find_active_node();
                if ($outcome !== false) {
                    return $outcome;
                }
            }
        }
        return false;
    }
public function find_active_node() {
        if ($this->isactive) {
            return $this;
        } else {
            foreach ($this->children as &$child) {
                $outcome = $child->find_active_node();
                if ($outcome !== false) {
                    return $outcome;
                }
            }
        }
        return false;
    }
public function find_active_node ( ) { if ( $ this -> isactive ) { return $ this ; } else { foreach ( $ this -> children as & $ child ) { $ outcome = $ child -> find_active_node ( ) ; if ( $ outcome !== false ) { return $ outcome ; } } } return false ; }
Finds the active node.

Searches this nodes children plus all of the children for the active node
and returns it if found.

Recursive.

@return navigation_node|false
Finds the active node .