original_string: public static function override_active_url(moodle_url $url, $loadadmintree = false) {
          // Clone the URL, in case the calling script changes their URL later.
          self::$fullmeurl = new moodle_url($url);
          // True means we do not want AJAX loaded admin tree, required for all admin pages.
          if ($loadadmintree) {
              // Do not change back to false if already set.
              self::$loadadmintree = true;
          }
      }
code: public static function override_active_url(moodle_url $url, $loadadmintree = false) {
          // Clone the URL, in case the calling script changes their URL later.
          self::$fullmeurl = new moodle_url($url);
          // True means we do not want AJAX loaded admin tree, required for all admin pages.
          if ($loadadmintree) {
              // Do not change back to false if already set.
              self::$loadadmintree = true;
          }
      }
code_tokens: public static function override_active_url ( moodle_url $ url , $ loadadmintree = false ) { // Clone the URL, in case the calling script changes their URL later. self :: $ fullmeurl = new moodle_url ( $ url ) ; // True means we do not want AJAX loaded admin tree, required for all admin pages. if ( $ loadadmintree ) { // Do not change back to false if already set. self :: $ loadadmintree = true ; } }
docstring: This sets the URL that the URL of new nodes get compared to when locating
  the active node.
  
  The active node is the node that matches the URL set here. By default this
  is either $PAGE->url or if that hasn't been set $FULLME.
  
  @param moodle_url $url The url to use for the fullmeurl.
  @param bool $loadadmintree use true if the URL point to administration tree
docstring_tokens: This sets the URL that the URL of new nodes get compared to when locating the active node .