Default route that looks for a string before the first slash, then dynamically loads a sub-rule and attempts to match against that.

Before starting the sub-rule, the route path is modified to strip off the prefix and the first slash.

Returns false if there is no prefix, if the prefix contains invalid characters (not a-z, 0-9, _), or if the sub-rule cannot be loaded. All other return values are dictated by the sub rule.

package XenForo_Mvc

 Methods

__construct()

__construct($routeType) 

Parameters

$routeType

Attempts to match the routing path.

match(string $routePath, \Zend_Controller_Request_Http $request, \XenForo_Router $router) : false | \XenForo_RouteMatch

See XenForo_Route_Interface for further details.

Parameters

$routePath

string

Routing path

$request

\Zend_Controller_Request_Http

Request object

$router

\XenForo_Router

Routing object

Returns

Loads the specified sub-rule and then tries to match it.

_loadAndRunSubRule(string $routeClass, string $newRoutePath, \Zend_Controller_Request_Http $request, \XenForo_Router $router) : \XenForo_RouteMatch | false

Parameters

$routeClass

string

Route class name

$newRoutePath

string

Route path to pass to match

$request

Zend_Controller_Request_Http

$router

XenForo_Router

Returns

 Properties

 

Type of route that should be handled.

$_routeType : string

This is either "admin" or "public".