original_string: public function set_parent(navigation_node $parent) {
          // Set the parent (thats the easy part)
          $this->parent = $parent;
          // Check if this node is active (this is checked during construction)
          if ($this->isactive) {
              // Force all of the parent nodes open so you can see this node
              $this->parent->force_open();
              // Make all parents inactive so that its clear where we are.
              $this->parent->make_inactive();
          }
      }
code: public function set_parent(navigation_node $parent) {
          // Set the parent (thats the easy part)
          $this->parent = $parent;
          // Check if this node is active (this is checked during construction)
          if ($this->isactive) {
              // Force all of the parent nodes open so you can see this node
              $this->parent->force_open();
              // Make all parents inactive so that its clear where we are.
              $this->parent->make_inactive();
          }
      }
code_tokens: public function set_parent ( navigation_node $ parent ) { // Set the parent (thats the easy part) $ this -> parent = $ parent ; // Check if this node is active (this is checked during construction) if ( $ this -> isactive ) { // Force all of the parent nodes open so you can see this node $ this -> parent -> force_open ( ) ; // Make all parents inactive so that its clear where we are. $ this -> parent -> make_inactive ( ) ; } }
docstring: Sets the parent for this node and if this node is active ensures that the tree is properly
  adjusted as well.
  
  @param navigation_node $parent
docstring_tokens: Sets the parent for this node and if this node is active ensures that the tree is properly adjusted as well .