public function make_active() {
        $this->isactive = true;
        $this->add_class('active_tree_node');
        $this->force_open();
        if ($this->parent !== null) {
            $this->parent->make_inactive();
        }
    }
public function make_active() {
        $this->isactive = true;
        $this->add_class('active_tree_node');
        $this->force_open();
        if ($this->parent !== null) {
            $this->parent->make_inactive();
        }
    }
public function make_active ( ) { $ this -> isactive = true ; $ this -> add_class ( 'active_tree_node' ) ; $ this -> force_open ( ) ; if ( $ this -> parent !== null ) { $ this -> parent -> make_inactive ( ) ; } }
Marks this node as active and forces it open.

Important: If you are here because you need to mark a node active to get
the navigation to do what you want have you looked at {@link navigation_node::override_active_url()}?
You can use it to specify a different URL to match the active navigation node on
rather than having to locate and manually mark a node active.
Marks this node as active and forces it open .