Zend Framework
3.0
|
Simple route stack implementation. More...
Public Member Functions | |
__construct (RoutePluginManager $routePluginManager=null) | |
Create a new simple route stack. | |
setRoutePluginManager (RoutePluginManager $routePlugins) | |
Set the route plugin manager. | |
getRoutePluginManager () | |
Get the route plugin manager. | |
addRoutes ($routes) | |
addRoutes(): defined by RouteStackInterface interface. | |
addRoute ($name, $route, $priority=null) | |
addRoute(): defined by RouteStackInterface interface. | |
removeRoute ($name) | |
removeRoute(): defined by RouteStackInterface interface. | |
setRoutes ($routes) | |
setRoutes(): defined by RouteStackInterface interface. | |
getRoutes () | |
Get the added routes. | |
hasRoute ($name) | |
Check if a route with a specific name exists. | |
getRoute ($name) | |
Get a route by name. | |
setDefaultParams (array $params) | |
Set a default parameters. | |
setDefaultParam ($name, $value) | |
Set a default parameter. | |
match (Request $request) | |
match(): defined by RouteInterface interface. | |
assemble (array $params=[], array $options=[]) | |
assemble(): defined by RouteInterface interface. | |
Static Public Member Functions | |
static | factory ($options=[]) |
factory(): defined by RouteInterface interface. | |
Protected Member Functions | |
init () | |
Init method for extending classes. | |
routeFromArray ($specs) | |
Create a route from array specifications. | |
Protected Attributes | |
$routes | |
$routePluginManager | |
$defaultParams = [] | |
Simple route stack implementation.
__construct | ( | RoutePluginManager | $routePluginManager = null | ) |
Create a new simple route stack.
RoutePluginManager | $routePluginManager |
addRoute | ( | $name, | |
$route, | |||
$priority = null |
|||
) |
addRoute(): defined by RouteStackInterface interface.
string | $name | |
mixed | $route | |
int | $priority |
Implements RouteStackInterface.
addRoutes | ( | $routes | ) |
addRoutes(): defined by RouteStackInterface interface.
array | Traversable | $routes |
Exception\InvalidArgumentException |
Implements RouteStackInterface.
assemble | ( | array | $params = [] , |
array | $options = [] |
||
) |
assemble(): defined by RouteInterface interface.
array | $params | |
array | $options |
Exception\InvalidArgumentException | |
Exception\RuntimeException |
Implements RouteInterface.
|
static |
factory(): defined by RouteInterface interface.
array | Traversable | $options |
Exception\InvalidArgumentException |
Implements RouteInterface.
getRoute | ( | $name | ) |
getRoutePluginManager | ( | ) |
Get the route plugin manager.
getRoutes | ( | ) |
Get the added routes.
hasRoute | ( | $name | ) |
Check if a route with a specific name exists.
string | $name |
|
protected |
Init method for extending classes.
match | ( | Request | $request | ) |
match(): defined by RouteInterface interface.
Request | $request |
Implements RouteInterface.
removeRoute | ( | $name | ) |
removeRoute(): defined by RouteStackInterface interface.
string | $name |
Implements RouteStackInterface.
|
protected |
Create a route from array specifications.
array | Traversable | $specs |
Exception\InvalidArgumentException |
setDefaultParam | ( | $name, | |
$value | |||
) |
setDefaultParams | ( | array | $params | ) |
setRoutePluginManager | ( | RoutePluginManager | $routePlugins | ) |
setRoutes | ( | $routes | ) |
setRoutes(): defined by RouteStackInterface interface.
array | Traversable | $routes |
Implements RouteStackInterface.
|
protected |
|
protected |
|
protected |