Method | Description | |
---|---|---|
__construct ( string $file, string $dir_path, string $dir_url ) | Constructor. Sets up the properties. | |
__toString ( ) : string | Returns the URL string. | |
from_location ( |
Returns a new URL object, instantiated according to the given location object. | |
version ( ) : string | Returns the file version. |
Method | Description | |
---|---|---|
get_file ( string $file, string $dir_path ) : string | Returns the name of the minified version of the given file if it exists and not debugging, otherwise the unmodified file. | |
get_minified_file ( string $file ) : string | Returns the given file with inserted ".min" infix, if not already minified file. |
public __toString ( ) : string | ||
return | string | URL string. |
public static from_location ( |
||
$location | Asset location object. | |
return | static | URL object. |