Route
class Route extends Object implements IRouter
The bidirectional route is responsible for mapping HTTP request to a Request object for dispatch and vice-versa.
Constants
PRESENTER_KEY |
|
MODULE_KEY |
|
CASE_SENSITIVE |
flag |
internal HOST |
|
internal PATH |
|
internal RELATIVE |
|
VALUE |
key used in Route::$styles} or metadata {@link Route::__construct |
PATTERN |
|
FILTER_IN |
|
FILTER_OUT |
|
FILTER_TABLE |
|
FILTER_STRICT |
|
internal OPTIONAL |
|
internal PATH_OPTIONAL |
|
internal CONSTANT |
|
Properties
static int | $defaultFlags | ||
static array | $styles | ||
string read-only | $mask | ||
array read-only | $defaults | ||
int read-only | $flags | ||
string|false read-only | $targetPresenter |
Methods
__construct($mask, $metadata = array(), $flags = 0)
No description
string|null
string
getMask()
Returns mask.
array
getDefaults()
Returns default values.
int
getFlags()
Returns flags.
string|false
getTargetPresenter()
Proprietary cache aim.
static void
addStyle($style, $parent = '#')
Creates new style.
static void
setStyleProperty($style, $key, $value)
Changes style property value.
Details
at line 114
__construct($mask, $metadata = array(), $flags = 0)
No description
at line 141
Request|null
match(IRequest $httpRequest)
Maps HTTP request to a Request object.
at line 269
string|null
constructUrl(Request $appRequest, Url $refUrl)
Constructs absolute URL from Request object.
at line 621
string
getMask()
Returns mask.
at line 631
array
getDefaults()
Returns default values.
at line 647
int
getFlags()
Returns flags.
at line 661
string|false
getTargetPresenter()
internal |
Proprietary cache aim.
at line 795
static void
addStyle($style, $parent = '#')
Creates new style.
at line 820
static void
setStyleProperty($style, $key, $value)
Changes style property value.