Route
class Route extends Route implements IRouter
The bidirectional route is responsible for mapping HTTP request to an array for dispatch and vice-versa.
Constants
private PRESENTER_KEY |
|
private MODULE_KEY |
|
private UI_META |
|
Properties
static deprecated | $styles |
Methods
__construct(string $mask, array $metadata = [], int $flags = 0)
No description
string|null
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)
No description
at line 86
array|null
match(IRequest $httpRequest)
Maps HTTP request to an array.
at line 111
string|null
constructUrl(array $params, UrlScript $refUrl)
Constructs absolute URL from array.
at line 138
array
getConstantParameters()
internal |
No description
at line 154
int
getFlags()
Returns flags.
at line 166
static string
action2path(string $s)
camelCaseAction name -> dash-separated.
at line 178
static string
path2action(string $s)
dash-separated -> camelCaseAction name.
at line 190
static string
presenter2path(string $s)
PascalCase:Presenter name -> dash-and-dot-separated.
at line 203
static string
path2presenter(string $s)
dash-and-dot-separated -> PascalCase:Presenter name.