Class path
A utility class for performing operations on paths.
Methods summary
public static
string
|
#
get_current_url( )
Constructs the full URL with query string - oddly, there is not a single PHP $_SERVER value already. |
public static
string
|
#
make_absolute( string $url, string $base )
Takes a relative URL and changes it into an absolute URL considering the base URL page. |
public static
string
|
|
public static
array
|
#
get_files( string $folder, string $pattern = '/.*/', boolean $include_subdirectories = false )
Returns an array of files found under a specific directory. |
public static
string
|
#
force_forward_slashes( string $path )
Changes all occurences of backslashes to forward slashes - can come in handy when working with a windows path that needs to look like a *nix path instead. |
public static
string
|
#
get_ski_directory_uri( )
Trying to figure out the ski.web directory for both local and remote versions has become ridiculous. As a result, it is a requirement for installation that the programmer define the SKI_URI. Should be something like 'http://localhost/mysite' instead of 'e:\wamp\www\mysite'. |