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 256
string|null
constructUrl(Request $appRequest, Url $refUrl)
Constructs absolute URL from Request object.
at line 592
string
getMask()
Returns mask.
at line 602
array
getDefaults()
Returns default values.
at line 618
int
getFlags()
Returns flags.
at line 631
string|false
getTargetPresenter()
Proprietary cache aim.
at line 765
static void
addStyle($style, $parent = '#')
Creates new style.
at line 790
static void
setStyleProperty($style, $key, $value)
Changes style property value.