original_string: public function out($escaped = true, array $overrideparams = null) {
  
          global $CFG;
  
          if (!is_bool($escaped)) {
              debugging('Escape parameter must be of type boolean, '.gettype($escaped).' given instead.');
          }
  
          $url = $this;
  
          // Allow url's to be rewritten by a plugin.
          if (isset($CFG->urlrewriteclass) && !isset($CFG->upgraderunning)) {
              $class = $CFG->urlrewriteclass;
              $pluginurl = $class::url_rewrite($url);
              if ($pluginurl instanceof moodle_url) {
                  $url = $pluginurl;
              }
          }
  
          return $url->raw_out($escaped, $overrideparams);
  
      }
code: public function out($escaped = true, array $overrideparams = null) {
  
          global $CFG;
  
          if (!is_bool($escaped)) {
              debugging('Escape parameter must be of type boolean, '.gettype($escaped).' given instead.');
          }
  
          $url = $this;
  
          // Allow url's to be rewritten by a plugin.
          if (isset($CFG->urlrewriteclass) && !isset($CFG->upgraderunning)) {
              $class = $CFG->urlrewriteclass;
              $pluginurl = $class::url_rewrite($url);
              if ($pluginurl instanceof moodle_url) {
                  $url = $pluginurl;
              }
          }
  
          return $url->raw_out($escaped, $overrideparams);
  
      }
code_tokens: public function out ( $ escaped = true , array $ overrideparams = null ) { global $ CFG ; if ( ! is_bool ( $ escaped ) ) { debugging ( 'Escape parameter must be of type boolean, ' . gettype ( $ escaped ) . ' given instead.' ) ; } $ url = $ this ; // Allow url's to be rewritten by a plugin. if ( isset ( $ CFG -> urlrewriteclass ) && ! isset ( $ CFG -> upgraderunning ) ) { $ class = $ CFG -> urlrewriteclass ; $ pluginurl = $ class :: url_rewrite ( $ url ) ; if ( $ pluginurl instanceof moodle_url ) { $ url = $ pluginurl ; } } return $ url -> raw_out ( $ escaped , $ overrideparams ) ; }
docstring: Output url.
  
  If you use the returned URL in HTML code, you want the escaped ampersands. If you use
  the returned URL in HTTP headers, you want $escaped=false.
  
  @param bool $escaped Use &amp; as params separator instead of plain &
  @param array $overrideparams params to add to the output url, these override existing ones with the same name.
  @return string Resulting URL
docstring_tokens: Output url .