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