private static _get_file_url ( integer $base, string $subdir, string $filename, boolean $absolute ) : string | ||
$base | integer | one of self::BASE_UPLOADS, self::BASE_CONTENT to indicate if file is an upload or a content (theme or plugin) |
$subdir | string | subdirectory in which file is stored, relative to $base root folder |
$filename | string | file name, including extension (but no path) |
$absolute | boolean | should the returned URL be absolute (include protocol+host), or relative |
return | string | the URL |