original_string: public static function make_legacyfile_url($courseid, $filepath, $forcedownload = false) {
          global $CFG;
  
          $urlbase = "$CFG->wwwroot/file.php";
          return self::make_file_url($urlbase, '/'.$courseid.'/'.$filepath, $forcedownload);
      }
code: public static function make_legacyfile_url($courseid, $filepath, $forcedownload = false) {
          global $CFG;
  
          $urlbase = "$CFG->wwwroot/file.php";
          return self::make_file_url($urlbase, '/'.$courseid.'/'.$filepath, $forcedownload);
      }
code_tokens: public static function make_legacyfile_url ( $ courseid , $ filepath , $ forcedownload = false ) { global $ CFG ; $ urlbase = "$CFG->wwwroot/file.php" ; return self :: make_file_url ( $ urlbase , '/' . $ courseid . '/' . $ filepath , $ forcedownload ) ; }
docstring: Factory method for creating of links to legacy course files.
  
  @param int $courseid
  @param string $filepath
  @param bool $forcedownload
  @return moodle_url
docstring_tokens: Factory method for creating of links to legacy course files .