asset
class asset
Properties
protected | $components | ||
protected path_helper | $path_helper | ||
protected filesystem | $filesystem |
Methods
set_url(string $url)
Set URL
string
join_url(array $components)
Convert URL components into string
string
get_url()
Get URL
bool
is_relative()
Checks if URL is local and relative
string
get_path()
Get path component of current URL
set_path(string $path, bool $urlencode = false)
Set path component
add_assets_version(string $version)
Add assets_version parameter to URL.
Details
at line 33
__construct(string $url, path_helper $path_helper, filesystem $filesystem)
Constructor
at line 46
set_url(string $url)
Set URL
at line 57
protected string
join_url(array $components)
Convert URL components into string
at line 115
string
get_url()
Get URL
at line 125
bool
is_relative()
Checks if URL is local and relative
at line 140
string
get_path()
Get path component of current URL
at line 151
set_path(string $path, bool $urlencode = false)
Set path component
at line 190
add_assets_version(string $version)
Add assets_version parameter to URL.
Parameter will not be added if assets_version already exists in URL