public static function make_file_url($urlbase, $path, $forcedownload = false) {
        $params = array();
        if ($forcedownload) {
            $params['forcedownload'] = 1;
        }
        $url = new moodle_url($urlbase, $params);
        $url->set_slashargument($path);
        return $url;
    }
public static function make_file_url($urlbase, $path, $forcedownload = false) {
        $params = array();
        if ($forcedownload) {
            $params['forcedownload'] = 1;
        }
        $url = new moodle_url($urlbase, $params);
        $url->set_slashargument($path);
        return $url;
    }
public static function make_file_url ( $ urlbase , $ path , $ forcedownload = false ) { $ params = array ( ) ; if ( $ forcedownload ) { $ params [ 'forcedownload' ] = 1 ; } $ url = new moodle_url ( $ urlbase , $ params ) ; $ url -> set_slashargument ( $ path ) ; return $ url ; }
General moodle file url.

@param string $urlbase the script serving the file
@param string $path
@param bool $forcedownload
@return moodle_url
General moodle file url .