class Path

Helps determine and generate paths.

Some substitutions are automatically created for you:

  • %clientPath% - Path to client's config directory

Methods

static boolean
addPlaceholder(string $key, string $segment)

Add a placeholder substitution ``` Path::addPlaceholder('foo', 'bar/baz');

string
get()

Generate path

Details

at line line 27
static boolean addPlaceholder(string $key, string $segment)

Add a placeholder substitution ``` Path::addPlaceholder('foo', 'bar/baz');

... Path::get('path/to/%foo%'); // path/to/bar/baz ```

Parameters

string $key substitution key
string $segment path segment

Return Value

boolean

at line line 39
string get()

Generate path

Return Value

string joined path segments