Segment route.

package Zend_Mvc_Router
subpackage Http
copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
license New BSD License
see \Zend\Mvc\Router\Console\http://guides.rubyonrails.org/routing.html

 Methods

Create a new simple console route.

__construct(string $route, array $constraints, array $defaults, array $aliases, null | array | \Traversable | \Zend\Filter\FilterChain $filters, null | array | \Traversable | \Zend\Validator\ValidatorChain $validators) : \Zend\Mvc\Router\Console\Simple

Parameters

$route

string

$constraints

array

$defaults

array

$aliases

array

$filters

nullarray\Traversable\Zend\Filter\FilterChain

$validators

nullarray\Traversable\Zend\Validator\ValidatorChain

Exceptions

\Zend\Mvc\Exception\InvalidArgumentException

Returns

assemble(): Defined by Route interface.

assemble(array $params, array $options) : mixed

see \Zend\Mvc\Router\Console\Route::assemble()

Parameters

$params

array

$options

array

Returns

mixed

factory(): defined by Route interface.

factory(array | \Traversable $options) : \Zend\Mvc\Router\Console\Simple

see \Zend\Mvc\Router\Console\Route::factory()

Parameters

$options

array\Traversable

Exceptions

\Zend\Mvc\Router\Exception\InvalidArgumentException

Returns

getAssembledParams(): defined by Route interface.

getAssembledParams() : array

see \Zend\Mvc\Router\Console\Route::getAssembledParams

Returns

array

match(): defined by Route interface.

match(\Zend\Stdlib\RequestInterface $request, null | int $pathOffset) : \Zend\Mvc\Router\Console\RouteMatch

see \Zend\Mvc\Router\Console\Route::match()

Parameters

$pathOffset

nullint

Returns

Parse a route definition.

parseRouteDefinition(string $def) : array

Parameters

$def

string

Exceptions

\Zend\Mvc\Router\Exception\InvalidArgumentException

Returns

array

 Properties

 

Parameters' name aliases.

$aliases : array

 

List of assembled parameters.

$assembledParams : array

 

Default values.

$defaults : array

 

$filters

$filters : \Zend\Filter\FilterChain

 

Parts of the route.

$parts : array

 

$validators

$validators : \Zend\Validator\ValidatorChain