Tree search implementation.
Methods
Create a new simple route stack.
__construct(\Zend\Mvc\Router\RoutePluginManager $routePluginManager)
Inherited
inherited_from |
\Zend\Mvc\Router\SimpleRouteStack::__construct() |
Parameters
addRoute(): defined by RouteStackInterface interface.
addRoute(string $name, mixed $route, int $priority) : \Zend\Mvc\Router\Http\TreeRouteStack
see |
\Zend\Mvc\Router\Http\RouteStackInterface::addRoute() |
Parameters
$name
string
$route
mixed
$priority
int
Returns
addRoutes(): defined by RouteStackInterface interface.
addRoutes(array | \Traversable $routes) : \Zend\Mvc\Router\SimpleRouteStack
Inherited
see |
\Zend\Mvc\Router\RouteStackInterface::addRoutes() |
inherited_from |
\Zend\Mvc\Router\SimpleRouteStack::addRoutes() |
Parameters
$routes
array\Traversable
Exceptions
Returns
assemble(): defined by \Zend\Mvc\Router\RouteInterface interface.
assemble(array $params, array $options) : mixed
see |
\Zend\Mvc\Router\RouteInterface::assemble() |
Parameters
$params
array
$options
array
Exceptions
Returns
mixed
factory(): defined by RouteInterface interface.
factory(array | \Traversable $options) : \Zend\Mvc\Router\SimpleRouteStack
see |
\Zend\Mvc\Router\RouteInterface::factory() |
Parameters
$options
array\Traversable
Exceptions
Returns
Get the base URL.
getBaseUrl() : string
Get a route by name
getRoute(string $name) : \Zend\Mvc\Router\RouteInterface
Inherited
inherited_from |
\Zend\Mvc\Router\SimpleRouteStack::getRoute() |
Parameters
$name
string
Returns
Get the route plugin manager.
getRoutePluginManager() : \Zend\Mvc\Router\RoutePluginManager
Inherited
inherited_from |
\Zend\Mvc\Router\SimpleRouteStack::getRoutePluginManager() |
Returns
Get the added routes
getRoutes() : \Traversable
Inherited
inherited_from |
\Zend\Mvc\Router\SimpleRouteStack::getRoutes() |
Returns
\Traversable
list of all routes
Check if a route with a specific name exists
hasRoute(string $name) : bool
Inherited
inherited_from |
\Zend\Mvc\Router\SimpleRouteStack::hasRoute() |
Parameters
$name
string
Returns
bool
true if route exists
match(): defined by \Zend\Mvc\Router\RouteInterface
match(\Zend\Stdlib\RequestInterface $request, integer | null $pathOffset, array $options) : \Zend\Mvc\Router\Http\RouteMatch | null
see |
\Zend\Mvc\Router\RouteInterface::match() |
Parameters
$pathOffset
integernull
$options
array
Returns
removeRoute(): defined by RouteStackInterface interface.
removeRoute(string $name) : \Zend\Mvc\Router\SimpleRouteStack
Inherited
see |
\Zend\Mvc\Router\RouteStackInterface::removeRoute() |
inherited_from |
\Zend\Mvc\Router\SimpleRouteStack::removeRoute() |
Parameters
$name
string
Returns
Set the base URL.
setBaseUrl(string $baseUrl) : \Zend\Mvc\Router\Http\self
Parameters
$baseUrl
string
Returns
\Zend\Mvc\Router\Http\self
Set a default parameter.
setDefaultParam(string $name, mixed $value) : \Zend\Mvc\Router\SimpleRouteStack
Inherited
inherited_from |
\Zend\Mvc\Router\SimpleRouteStack::setDefaultParam() |
Parameters
$name
string
$value
mixed
Returns
Set a default parameters.
setDefaultParams(array $params) : \Zend\Mvc\Router\SimpleRouteStack
Inherited
inherited_from |
\Zend\Mvc\Router\SimpleRouteStack::setDefaultParams() |
Parameters
$params
array
Returns
Set the route plugin manager.
setRoutePluginManager(\Zend\Mvc\Router\RoutePluginManager $routePlugins) : \Zend\Mvc\Router\SimpleRouteStack
Inherited
inherited_from |
\Zend\Mvc\Router\SimpleRouteStack::setRoutePluginManager() |
Parameters
Returns
setRoutes(): defined by RouteStackInterface interface.
setRoutes(array | \Traversable $routes) : \Zend\Mvc\Router\SimpleRouteStack
Inherited
inherited_from |
\Zend\Mvc\Router\SimpleRouteStack::setRoutes() |
Parameters
$routes
array\Traversable
Returns
init(): defined by SimpleRouteStack.
init() : void
see |
\Zend\Mvc\Router\SimpleRouteStack::init() |
routeFromArray(): defined by SimpleRouteStack.
routeFromArray(string | array | \Traversable $specs) : \Zend\Mvc\Router\Http\RouteInterface
see |
\Zend\Mvc\Router\SimpleRouteStack::routeFromArray() |
Parameters
$specs
stringarray\Traversable
Exceptions
Returns
Properties
Base URL.
$baseUrl : string
Default parameters.
$defaultParams : array
Inherited
inherited_from |
\Zend\Mvc\Router\SimpleRouteStack::$$defaultParams |
Prototype routes.
$prototypes : \ArrayObject
We use an ArrayObject in this case so we can easily pass it down the tree
by reference.