original_string: public function check_if_active($strength=URL_MATCH_EXACT) {
          global $FULLME, $PAGE;
          // Set fullmeurl if it hasn't already been set
          if (self::$fullmeurl == null) {
              if ($PAGE->has_set_url()) {
                  self::override_active_url(new moodle_url($PAGE->url));
              } else {
                  self::override_active_url(new moodle_url($FULLME));
              }
          }
  
          // Compare the action of this node against the fullmeurl
          if ($this->action instanceof moodle_url && $this->action->compare(self::$fullmeurl, $strength)) {
              $this->make_active();
              return true;
          }
          return false;
      }
code: public function check_if_active($strength=URL_MATCH_EXACT) {
          global $FULLME, $PAGE;
          // Set fullmeurl if it hasn't already been set
          if (self::$fullmeurl == null) {
              if ($PAGE->has_set_url()) {
                  self::override_active_url(new moodle_url($PAGE->url));
              } else {
                  self::override_active_url(new moodle_url($FULLME));
              }
          }
  
          // Compare the action of this node against the fullmeurl
          if ($this->action instanceof moodle_url && $this->action->compare(self::$fullmeurl, $strength)) {
              $this->make_active();
              return true;
          }
          return false;
      }
code_tokens: public function check_if_active ( $ strength = URL_MATCH_EXACT ) { global $ FULLME , $ PAGE ; // Set fullmeurl if it hasn't already been set if ( self :: $ fullmeurl == null ) { if ( $ PAGE -> has_set_url ( ) ) { self :: override_active_url ( new moodle_url ( $ PAGE -> url ) ) ; } else { self :: override_active_url ( new moodle_url ( $ FULLME ) ) ; } } // Compare the action of this node against the fullmeurl if ( $ this -> action instanceof moodle_url && $ this -> action -> compare ( self :: $ fullmeurl , $ strength ) ) { $ this -> make_active ( ) ; return true ; } return false ; }
docstring: Checks if this node is the active node.
  
  This is determined by comparing the action for the node against the
  defined URL for the page. A match will see this node marked as active.
  
  @param int $strength One of URL_MATCH_EXACT, URL_MATCH_PARAMS, or URL_MATCH_BASE
  @return bool
docstring_tokens: Checks if this node is the active node .