Route
class Route implements Router
The bidirectional route is responsible for mapping HTTP request to an array for dispatch and vice-versa.
Constants
| Value |
key used in metadata |
| Pattern |
key used in metadata |
| FilterIn |
key used in metadata |
| FilterOut |
key used in metadata |
| FilterTable |
key used in metadata |
| FilterStrict |
key used in metadata |
| deprecated VALUE |
|
| deprecated PATTERN |
|
| deprecated FILTER_IN |
|
| deprecated FILTER_OUT |
|
| deprecated FILTER_TABLE |
|
| deprecated FILTER_STRICT |
|
| private Default |
key used in metadata |
| private Fixity |
key used in metadata |
| private FilterTableOut |
key used in metadata |
| private Host |
url type |
| private Path |
url type |
| private Relative |
url type |
| private InQuery |
fixity types - has default value and is: |
| private InPath |
fixity types - has default value and is: |
| private Constant |
fixity types - has default value and is: |
Properties
| protected array<string,array<string,mixed>> | $defaultMeta |
Methods
No description
Returns mask.
No description
Returns default values.
No description
Maps HTTP request to an array.
Constructs absolute URL from array.
Url encode.
Details
at line 102
__construct(string $mask, array $metadata = [])
No description
at line 113
string
getMask()
Returns mask.
at line 123
protected array
getMetadata()
| internal |
No description
at line 133
array
getDefaults()
Returns default values.
at line 150
array
getConstantParameters()
| internal |
No description
at line 167
array|null
match(IRequest $httpRequest)
Maps HTTP request to an array.
at line 265
string|null
constructUrl(array $params, UrlScript $refUrl)
Constructs absolute URL from array.
at line 652
static string
param2path(string $s)
Url encode.