Segment route.

copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
license New BSD License
see
package Default

 Methods

Create a new simple console route.

__construct(string|\Zend\Console\RouteMatcher\RouteMatcherInterface $routeOrRouteMatcher, array $constraints = array(), array $defaults = array(), array $aliases = array(), null|array|\Traversable|\Zend\Filter\FilterChain $filters = null, null|array|\Traversable|\Zend\Validator\ValidatorChain $validators = null

Parameters

$routeOrRouteMatcher

string\Zend\Console\RouteMatcher\RouteMatcherInterface

$constraints

array

$defaults

array

$aliases

array

$filters

nullarray\Traversable\Zend\Filter\FilterChain

$validators

nullarray\Traversable\Zend\Validator\ValidatorChain

Exceptions

\Zend\Mvc\Router\Exception\InvalidArgumentException

assemble(): Defined by Route interface.

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

Parameters

$params

array

$options

array

Returns

mixed

factory(): defined by Route interface.

factory(array|\Traversable $options = array()) : \Zend\Mvc\Router\Console\Simple
Static
see
fluent This method is part of a fluent interface and will return the same instance

Parameters

$options

array\Traversable

Exceptions

\Zend\Mvc\Router\Exception\InvalidArgumentException

Returns

\Zend\Mvc\Router\Console\Simple

getAssembledParams(): defined by Route interface.

getAssembledParams() : array
see
inherited_from \Zend\Mvc\Router\Console\RouteInterface::getAssembledParams()

Returns

array

match(): defined by Route interface.

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

Parameters

$request

\Zend\Stdlib\RequestInterface

$pathOffset

nullinteger

Returns

\Zend\Mvc\Router\Console\RouteMatch

 Properties

 

List of assembled parameters.

$assembledParams : array

Default

array()
 

$matcher

$matcher : \Zend\Console\RouteMatcher\RouteMatcherInterface

Default