class RouteHelper (View source)

The RouteHelper class.

Methods

static string
sanitize(string $pattern)

Sanitize and explode the pattern.

static string
normalise(string $route)

normalise

static array
getVariables(array $matches, array $vars = null)

Get variables from regex matched result.

static array
getEnvironment()

getEnvironment

Details

at line line 25
static string sanitize(string $pattern)

Sanitize and explode the pattern.

Parameters

string $pattern

Return Value

string

at line line 37
static string normalise(string $route)

normalise

Parameters

string $route

Return Value

string

at line line 50
static array getVariables(array $matches, array $vars = null)

Get variables from regex matched result.

Parameters

array $matches Regex matched result.
array $vars &$vars Variables to store data.

Return Value

array

at line line 85
static array getEnvironment()

getEnvironment

Return Value

array