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);
    }
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);
    }
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 ) ; }
Factory method for creating of links to legacy course files.

@param int $courseid
@param string $filepath
@param bool $forcedownload
@return moodle_url
Factory method for creating of links to legacy course files .