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 | |
---|---|
static void |
addStyle
(string $style, [string $parent =
'#' ], void 2)
Creates new style.
|
string|NULL |
constructUrl
(PresenterRequest $appRequest, $httpRequest)
Constructs absolute URL from PresenterRequest object.
|
Route |
|
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 43 flag |
string | FILTER_IN |
'filterIn' |
line 53 key used in Route::$styles |
string | FILTER_OUT |
'filterOut' |
line 54 key used in Route::$styles |
string | FILTER_TABLE |
'filterTable' |
line 55 key used in Route::$styles |
int | HOST |
1 |
line 46 uri type |
string | MODULE_KEY |
'module' |
line 40 |
int | PATH |
2 |
line 47 uri type |
string | PATTERN |
'pattern' |
line 52 key used in Route::$styles |
string | PRESENTER_KEY |
'presenter' |
line 39 |
int | RELATIVE |
3 |
line 48 uri type |
Variable Summary | ||||
---|---|---|---|---|
static bool | $defaultFlags | 0 |
line 65 |
|
protected int | $flags |
|
line 118 |
|
protected array | $metadata | array() |
line 109 of [default & fixity, filterIn, filterOut] |
|
static array | $styles | array(
'#' => array( // default style for path parameters
self::PATTERN => '[^/]+',... |
line 68 |
|
protected int | $type |
|
line 115 HOST, PATH, RELATIVE |
|
protected array | $xlat |
|
line 112 |
Method Details | |||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
line 700 addStylepublic static void addStyle (string $style, [string $parent = Creates new style.
|
|||||||||||||||||||||
line 249 constructUrlpublic string|NULL constructUrl (PresenterRequest $appRequest, $httpRequest) Constructs absolute URL from PresenterRequest object. Implementation of:
|
|||||||||||||||||||||
line 127 __constructpublic Route __construct (string $mask, [$defaults =
|
|||||||||||||||||||||
line 550 getDefaultspublic array getDefaults () Returns default values.
|
|||||||||||||||||||||
line 539 getMaskpublic string getMask () Returns mask.
|
|||||||||||||||||||||
line 571 getTargetPresenterpublic string|FALSE getTargetPresenter () Proprietary cache aim.
|
|||||||||||||||||||||
line 140 matchpublic PresenterRequest|NULL match ($httpRequest) Maps HTTP request to a PresenterRequest object. Implementation of:
|
|||||||||||||||||||||
line 726 setStylePropertypublic static void setStyleProperty (string $style, string $key, mixed $value, void 3) Changes style property value.
|