class Route extends Route implements IRouter

The bidirectional route is responsible for mapping HTTP request to an array for dispatch and vice-versa.

Constants

PRESENTER_KEY

MODULE_KEY

UI_META

Properties

static $styles

Methods

__construct(string $mask, array $metadata = [], int $flags = 0)

No description

array|null
match(IRequest $httpRequest)

Maps HTTP request to an array.

string|null
constructUrl(array $params, UrlScript $refUrl)

Constructs absolute URL from array.

array
getConstantParameters()

No description

int
getFlags()

Returns flags.

static string
action2path(string $s)

camelCaseAction name -> dash-separated.

static string
path2action(string $s)

dash-separated -> camelCaseAction name.

static string
presenter2path(string $s)

PascalCase:Presenter name -> dash-and-dot-separated.

static string
path2presenter(string $s)

dash-and-dot-separated -> PascalCase:Presenter name.

Details

at line 54
__construct(string $mask, array $metadata = [], int $flags = 0)

Parameters

string $mask
array $metadata
int $flags

at line 86
array|null match(IRequest $httpRequest)

Maps HTTP request to an array.

Parameters

IRequest $httpRequest

Return Value

array|null

at line 111
string|null constructUrl(array $params, UrlScript $refUrl)

Constructs absolute URL from array.

Parameters

array $params
UrlScript $refUrl

Return Value

string|null

at line 139
array getConstantParameters()

Return Value

array

at line 150
int getFlags()

Returns flags.

Return Value

int

at line 162
static string action2path(string $s)

camelCaseAction name -> dash-separated.

Parameters

string $s

Return Value

string

at line 174
static string path2action(string $s)

dash-separated -> camelCaseAction name.

Parameters

string $s

Return Value

string

at line 186
static string presenter2path(string $s)

PascalCase:Presenter name -> dash-and-dot-separated.

Parameters

string $s

Return Value

string

at line 199
static string path2presenter(string $s)

dash-and-dot-separated -> PascalCase:Presenter name.

Parameters

string $s

Return Value

string