Class Route
Базовый класс роутинга Базируется на оригинальной работе Kohana Team
Direct known subclasses
Located at: core/libraries/route.php
Methods summary
protected static
|
|
protected static
|
|
protected static
array
|
|
public
|
#
__construct( mixed $uri = NULL, array $regex = NULL )
Creates a new route. Sets the URI and regular expressions for keys. Routes should always be created with [self::set] or they will not be properly stored. |
protected
$this
|
|
protected
array
|
|
protected
string
|
Constants summary
string
|
REGEX_KEY
|
'<([a-zA-Z0-9_]++)>' |
|
string
|
REGEX_SEGMENT
|
'[^/.,;?\n]++' |
|
string
|
REGEX_ESCAPE
|
'[.\\+*?[^\\]${}=!|]' |
Properties summary
public static
string
|
$default_protocol | 'http://' |
#
default protocol for all routes |
public static
string
|
$default_action | 'index' |
#
default action for all routes |
public static
boolean
|
$cache | FALSE |
#
Indicates whether routes are cached |
protected static
array
|
$_routes | array() |
|
protected
string
|
$_uri | '' |
#
route URI |
protected
array
|
$_regex | array() |
|
protected
array
|
$_defaults | array('action' => 'index', 'host' => FALSE) |
|
protected
string
|
$_route_regex |
|