Class X2UrlRule
Custom URL parsing class
The only change which has been made is the modification of a regex flag in URL parsing. Ctrl + F for "X2CHANGE" to see the location of this change.
- CComponent
- CBaseUrlRule
- CUrlRule
- X2UrlRule
public
|
|
public
mixed
|
|
public
mixed
|
__call(),
__get(),
__isset(),
__set(),
__unset(),
asa(),
attachBehavior(),
attachBehaviors(),
attachEventHandler(),
canGetProperty(),
canSetProperty(),
detachBehavior(),
detachBehaviors(),
detachEventHandler(),
disableBehavior(),
disableBehaviors(),
enableBehavior(),
enableBehaviors(),
evaluateExpression(),
getEventHandlers(),
hasEvent(),
hasEventHandler(),
hasProperty(),
raiseEvent()
|
public
string
|
$urlSuffix |
|
#
the URL suffix used for this rule. For example, ".html" can be used so that the URL looks like pointing to a static HTML page. Defaults to null, meaning using the value of CUrlManager::urlSuffix. |
public
boolean
|
$caseSensitive |
|
#
whether the rule is case sensitive. Defaults to null, meaning using the value of CUrlManager::caseSensitive. |
public
array
|
$defaultParams | array() |
#
the default GET parameters (name=>value) that this rule provides. When this rule is used to parse the incoming request, the values declared in this property will be injected into $_GET. |
public
boolean
|
$matchValue |
|
#
whether the GET parameter values should match the corresponding sub-patterns in the rule when creating a URL. Defaults to null, meaning using the value of CUrlManager::matchValue. When this property is false, it means a rule will be used for creating a URL if its route and parameter names match the given ones. If this property is set true, then the given parameter values must also match the corresponding parameter sub-patterns. Note that setting this property to true will degrade performance. |
public
string
|
$verb |
|
#
the HTTP verb (e.g. GET, POST, DELETE) that this rule should match. If this rule can match multiple verbs, please separate them with commas. If this property is not set, the rule can match any verb. Note that this property is only used when parsing a request. It is ignored for URL creation. |
public
boolean
|
$parsingOnly | false |
#
whether this rule is only used for request parsing. Defaults to false, meaning the rule is used for both URL parsing and creation. |
public
string
|
$route |
|
#
the controller/action pair |
public
array
|
$references | array() |
#
the mapping from route param name to token name (e.g. _r1=><1>) |
public
string
|
$routePattern |
|
#
the pattern used to match route |
public
string
|
$pattern |
|
#
regular expression used to parse a URL |
public
string
|
$template |
|
#
template used to construct a URL |
public
array
|
$params | array() |
#
list of parameters (name=>regular expression) |
public
boolean
|
$append |
|
#
whether the URL allows additional parameters at the end of the path info. |
public
boolean
|
$hasHostInfo |
|
#
whether host info should be considered for this rule |