Paths
class Paths
Class Paths
Constants
DEFAULT_URL |
|
DEFAULT_PATH |
|
Methods
__construct()
Class constructor.
mixed
getVariable(string $name, string $attr)
No description
bool
hasVariable(string $name)
Does the variable exist.
mixed|string
getPath(string $value)
Determine the absolute path to a file, given that the file is most likely in a given particular variable.
mixed|string
getUrl(string $value, string $preferFormat = 'relative', bool|NULL $ssl = NULL)
Determine the URL to a file.
Details
at line 32
__construct()
Class constructor.
at line 125
Paths
register(string $name, callable $factory)
Register a new URL/file path mapping.
at line 137
mixed
getVariable(string $name, string $attr)
at line 157
bool
hasVariable(string $name)
Does the variable exist.
at line 171
mixed|string
getPath(string $value)
Determine the absolute path to a file, given that the file is most likely in a given particular variable.
at line 200
mixed|string
getUrl(string $value, string $preferFormat = 'relative', bool|NULL $ssl = NULL)
Determine the URL to a file.