Tree search implementation.

package Default
inherited_from \Zend\Mvc\Router\SimpleRouteStack

 Methods

Create a new simple route stack.

__construct(\Zend\Mvc\Router\RoutePluginManager $routePluginManager = null
Inherited

Parameters

$routePluginManager

\Zend\Mvc\Router\RoutePluginManager

addRoute(): defined by RouteStackInterface interface.

addRoute(string $name, mixed $route, integer $priority = null) : \Zend\Mvc\Router\Console\SimpleRouteStack
see
inherited_from \Zend\Mvc\Router\SimpleRouteStack::addRoute()

Parameters

$name

string

$route

mixed

$priority

integer

Returns

\Zend\Mvc\Router\Console\SimpleRouteStack

addRoute(): defined by RouteStackInterface interface.

addRoute(string $name, mixed $route, integer $priority = null) : \Zend\Mvc\Router\SimpleRouteStack
Inherited
see
inherited_from \Zend\Mvc\Router\RouteStackInterface::addRoute()

Parameters

$name

string

$route

mixed

$priority

integer

Returns

\Zend\Mvc\Router\SimpleRouteStack

addRoutes(): defined by RouteStackInterface interface.

addRoutes(array|\Traversable $routes) : \Zend\Mvc\Router\SimpleRouteStack
Inherited
see
inherited_from \Zend\Mvc\Router\RouteStackInterface::addRoutes()

Parameters

$routes

array\Traversable

Exceptions

\Zend\Mvc\Router\Exception\InvalidArgumentException

Returns

\Zend\Mvc\Router\SimpleRouteStack

assemble(): defined by RouteInterface interface.

assemble(array $params = array(), array $options = array()) : mixed
Inherited
see

Parameters

$params

array

$options

array

Exceptions

\Zend\Mvc\Router\Exception\InvalidArgumentException
\Zend\Mvc\Router\Exception\RuntimeException

Returns

mixed

factory(): defined by RouteInterface interface.

factory(array|\Traversable $options = array()) : \Zend\Mvc\Router\SimpleRouteStack
InheritedStatic
see

Parameters

$options

array\Traversable

Exceptions

\Zend\Mvc\Router\Exception\InvalidArgumentException

Returns

\Zend\Mvc\Router\SimpleRouteStack

Get a route by name

getRoute(string $name) : \Zend\Mvc\Router\RouteInterface
Inherited

Parameters

$name

string

Returns

\Zend\Mvc\Router\RouteInterfacethe route

Get the route plugin manager.

getRoutePluginManager() : \Zend\Mvc\Router\RoutePluginManager
Inherited

Returns

\Zend\Mvc\Router\RoutePluginManager

Get the added routes

getRoutes() : \Traversable
Inherited

Returns

\Traversablelist of all routes

Check if a route with a specific name exists

hasRoute(string $name) : boolean
Inherited

Parameters

$name

string

Returns

booleantrue if route exists

match(): defined by RouteInterface interface.

match(\Zend\Stdlib\RequestInterface $request) : \Zend\Mvc\Router\RouteMatch | null
Inherited
see

Parameters

$request

\Zend\Stdlib\RequestInterface

Returns

\Zend\Mvc\Router\RouteMatchnull

removeRoute(): defined by RouteStackInterface interface.

removeRoute(string $name) : \Zend\Mvc\Router\SimpleRouteStack
Inherited
see
inherited_from \Zend\Mvc\Router\RouteStackInterface::removeRoute()

Parameters

$name

string

Returns

\Zend\Mvc\Router\SimpleRouteStack

Set a default parameter.

setDefaultParam(string $name, mixed $value) : \Zend\Mvc\Router\SimpleRouteStack
Inherited

Parameters

$name

string

$value

mixed

Returns

\Zend\Mvc\Router\SimpleRouteStack

Set a default parameters.

setDefaultParams(array $params) : \Zend\Mvc\Router\SimpleRouteStack
Inherited

Parameters

$params

array

Returns

\Zend\Mvc\Router\SimpleRouteStack

Set the route plugin manager.

setRoutePluginManager(\Zend\Mvc\Router\RoutePluginManager $routePlugins) : \Zend\Mvc\Router\SimpleRouteStack
Inherited

Parameters

$routePlugins

\Zend\Mvc\Router\RoutePluginManager

Returns

\Zend\Mvc\Router\SimpleRouteStack

setRoutes(): defined by RouteStackInterface interface.

setRoutes(array|\Traversable $routes) : \Zend\Mvc\Router\SimpleRouteStack
Inherited
inherited_from \Zend\Mvc\Router\RouteStackInterface::setRoutes()

Parameters

$routes

array\Traversable

Returns

\Zend\Mvc\Router\SimpleRouteStack

init(): defined by SimpleRouteStack.

init() 
see
inherited_from \Zend\Mvc\Router\SimpleRouteStack::init()

Init method for extending classes.

init() : void
Inherited

routeFromArray(): defined by SimpleRouteStack.

routeFromArray(array|\Traversable $specs) : \Zend\Mvc\Router\Console\RouteInterface
see
inherited_from \Zend\Mvc\Router\SimpleRouteStack::routeFromArray()

Parameters

$specs

array\Traversable

Exceptions

\Zend\Mvc\Router\Exception\InvalidArgumentException
\Zend\Mvc\Router\Exception\RuntimeException

Returns

\Zend\Mvc\Router\Console\RouteInterface

Create a route from array specifications.

routeFromArray(array|\Traversable $specs) : \Zend\Mvc\Router\RouteInterface
Inherited

Parameters

$specs

array\Traversable

Exceptions

\Zend\Mvc\Router\Exception\InvalidArgumentException

Returns

\Zend\Mvc\Router\RouteInterface

 Properties

 

Default parameters.

$defaultParams : array

Default

array()
 

Route plugin manager

$routePluginManager : \Zend\Mvc\Router\RoutePluginManager

Default

 

Stack containing all routes.

$routes : \Zend\Mvc\Router\PriorityList

Default