__construct()
getAction()
getControllerName()
getMajorSection()
getMinorSection()
getModifiedRoutePath()
getResponseType()
setAction()
setControllerName()
setModifiedRoutePath()
setResponseType()
setSections()
$_modifiedRoutePath
$_action
$_controllerName
$_majorSection
$_minorSection
$_responseType
Class that represents a result to be returned by a {@link XenForo_Route_Interface}.
package | XenForo_Mvc |
---|
__construct(string $controllerName, string | false $action, string $majorSection, string $minorSection)
Allows quick set of the controller and action. Other elements should be set directly via the properties.
string
If routing to a controller, the controller name to call
string
false
If routing to a controller, the action in that controller
string
The major section of the page we're being routed to
string
The minor section of the page we're being routed to
getAction() : string
string
getControllerName() : string
string
getMajorSection() : string
string
getMinorSection() : string
string
getModifiedRoutePath() : string | null
If null, no modification is requested.
string
null
getResponseType() : string
string
setAction($action)
This will automatically translate the action into a a more usable form, by replacing dashes with word breaks. For example, confirm-test will be mapped to ConfirmTest.
string
setControllerName(string $controllerName)
string
setModifiedRoutePath(string | null $routePath)
string
null
setResponseType(string $responseType)
string
setSections(string $majorSection, string $minorSection)
This is used to aid navigation.
string
string
$_modifiedRoutePath : null | string
Useful only when the rule generating the object doesn't list a controller and action. Can be set to an empty string to cause the next rule to receive XenForo_Router::$_routePathIfEmpty as the routing path.
$_action : string
Applies only when $controllerName is not empty; must be specified if a controller is specified.
$_controllerName : string
If not empty, no further rules will be processed and routing will finishe.
$_majorSection : string
This is used as a navigation aid; for example, to show the right tab and child sections.
$_minorSection : string
This can, for example, allow the current section within a tab to be displayed as if it's selected.
$_responseType : string
If left as an empty string, any previously set type will be used.