Class Route (namespace Nette\Application)
The bidirectional route is responsible for mapping HTTP request to a PresenterRoute object for dispatch and vice-versa.
Object | --Route
Implements interfaces:
Public Method Summary | |
---|---|
Route |
|
static void |
addStyle
(string $style, [string $parent =
'#' ], void 2)
Creates new style.
|
string|NULL |
constructUrl
(PresenterRequest $appRequest, $httpRequest)
Constructs absolute URL from PresenterRequest object.
|
array |
getDefaults
()
Returns default values.
|
string |
getMask
()
Returns mask.
|
string|FALSE |
Proprietary cache aim.
|
PresenterRequest|NULL |
match
($httpRequest)
Maps HTTP request to a PresenterRequest object.
|
static void |
setStyleProperty
(string $style, string $key, mixed $value, void 3)
Changes style property value.
|
Methods Inherited From Object |
---|
extensionMethod(), getClass(), getReflection(), __call(), __callStatic(), __get(), __isset(), __set(), __unset() |
Constant Summary | |||
---|---|---|---|
int | CASE_SENSITIVE |
256 |
line 42 flag |
string | FILTER_IN |
'filterIn' |
line 54 key used in Route::$styles or metadata Route::__construct |
string | FILTER_OUT |
'filterOut' |
line 55 key used in Route::$styles or metadata Route::__construct |
string | FILTER_TABLE |
'filterTable' |
line 56 key used in Route::$styles or metadata Route::__construct |
int | FULL_META |
128 |
line 43 |
string | MODULE_KEY |
'module' |
line 39 |
string | PATTERN |
'pattern' |
line 53 key used in Route::$styles or metadata Route::__construct |
string | PRESENTER_KEY |
'presenter' |
line 38 |
string | VALUE |
'value' |
line 52 key used in Route::$styles or metadata Route::__construct |
Variable Summary | ||||
---|---|---|---|---|
static bool | $defaultFlags | 0 |
line 66 |
|
static array | $styles | array(
'#' => array( // default style for path parameters
self::PATTERN => '[^/]+',... |
line 69 |
Method Details | |||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
line 128 __constructpublic Route __construct (string $mask, [$metadata =
|
|||||||||||||||||||||
line 735 addStylepublic static void addStyle (string $style, [string $parent = Creates new style.
|
|||||||||||||||||||||
line 259 constructUrlpublic string|NULL constructUrl (PresenterRequest $appRequest, $httpRequest) Constructs absolute URL from PresenterRequest object. Implementation of:
|
|||||||||||||||||||||
line 585 getDefaultspublic array getDefaults () Returns default values.
|
|||||||||||||||||||||
line 574 getMaskpublic string getMask () Returns mask.
|
|||||||||||||||||||||
line 606 getTargetPresenterpublic string|FALSE getTargetPresenter () Proprietary cache aim.
|
|||||||||||||||||||||
line 146 matchpublic PresenterRequest|NULL match ($httpRequest) Maps HTTP request to a PresenterRequest object. Implementation of:
|
|||||||||||||||||||||
line 761 setStylePropertypublic static void setStyleProperty (string $style, string $key, mixed $value, void 3) Changes style property value.
|