Class Route
The bidirectional route is responsible for mapping HTTP request to a PresenterRoute object for dispatch and vice-versa.
- Nette\Object
- Nette\Application\Route implements Nette\Application\IRouter
public
|
|
public
|
|
public
string|null
|
#
constructUrl( Nette\Application\PresenterRequest $appRequest, Nette\Web\IHttpRequest $httpRequest )
Constructs absolute URL from PresenterRequest object. |
public
string
|
|
public
array
|
|
public
string|false
|
|
public static
|
|
public static
|
__call(),
__callStatic(),
__get(),
__isset(),
__set(),
__unset(),
extensionMethod(),
getReflection()
|
string
|
PRESENTER_KEY
|
'presenter' |
|
string
|
MODULE_KEY
|
'module' |
|
integer
|
CASE_SENSITIVE
|
256 |
#
flag |
integer
|
FULL_META
|
128 |
|
integer
|
HOST
|
1 |
|
integer
|
PATH
|
2 |
|
integer
|
RELATIVE
|
3 |
|
string
|
VALUE
|
'value' |
#
key used in |
string
|
PATTERN
|
'pattern' |
|
string
|
FILTER_IN
|
'filterIn' |
|
string
|
FILTER_OUT
|
'filterOut' |
|
string
|
FILTER_TABLE
|
'filterTable' |
|
integer
|
OPTIONAL
|
0 |
|
integer
|
PATH_OPTIONAL
|
1 |
|
integer
|
CONSTANT
|
2 |
ONE_WAY,
SECURED
|
public static
boolean
|
$defaultFlags | 0 |
|
public static
array
|
$styles | array(
'#' => array( // default style for path parameters
self::PATTERN => '[^/]+',
self::FILTER_IN => 'rawurldecode',
self::FILTER_OUT => 'rawurlencode',
),
'?#' => array( // default style for query parameters
),
'module' => array(
self::PATTERN => '[a-z][a-z0-9.-]*',
self::FILTER_IN => array(__CLASS__, 'path2presenter'),
self::FILTER_OUT => array(__CLASS__, 'presenter2path'),
),
'presenter' => array(
self::PATTERN => '[a-z][a-z0-9.-]*',
self::FILTER_IN => array(__CLASS__, 'path2presenter'),
self::FILTER_OUT => array(__CLASS__, 'presenter2path'),
),
'action' => array(
self::PATTERN => '[a-z][a-z0-9-]*',
self::FILTER_IN => array(__CLASS__, 'path2action'),
self::FILTER_OUT => array(__CLASS__, 'action2path'),
),
'?module' => array(
),
'?presenter' => array(
),
'?action' => array(
),
) |