Part route match.

copyright Copyright (c) 2005-2015 Zend Technologies USA Inc. (http://www.zend.com)
license New BSD License
package Default
inherited_from \Zend\Mvc\Router\RouteMatch

 Methods

Create a part RouteMatch with given parameters and length.

__construct(array $params, integer $length = 0
inherited_from \Zend\Mvc\Router\RouteMatch::__construct()

Parameters

$params

array

$length

integer

Create a RouteMatch with given parameters.

__construct(array $params) 
Inherited

Parameters

$params

array

Get the matched path length.

getLength() : integer

Returns

integer

Get name of matched route.

getMatchedRouteName() : string
Inherited

Returns

string

Get a specific parameter.

getParam(string $name, mixed $default = null) : mixed
Inherited

Parameters

$name

string

$default

mixed

Returns

mixed

Get all parameters.

getParams() : array
Inherited

Returns

array

Merge parameters from another match.

merge(\Zend\Mvc\Router\Console\RouteMatch $match) : \Zend\Mvc\Router\Console\RouteMatch

Parameters

$match

\Zend\Mvc\Router\Console\RouteMatch

Returns

\Zend\Mvc\Router\Console\RouteMatch

setMatchedRouteName(): defined by BaseRouteMatch.

setMatchedRouteName(string $name) : \Zend\Mvc\Router\Console\RouteMatch
see
inherited_from \Zend\Mvc\Router\RouteMatch::setMatchedRouteName()
fluent This method is part of a fluent interface and will return the same instance

Parameters

$name

string

Returns

\Zend\Mvc\Router\Console\RouteMatch

Set name of matched route.

setMatchedRouteName(string $name) : \Zend\Mvc\Router\RouteMatch
Inherited

Parameters

$name

string

Returns

\Zend\Mvc\Router\RouteMatch

Set a parameter.

setParam(string $name, mixed $value) : \Zend\Mvc\Router\RouteMatch
Inherited

Parameters

$name

string

$value

mixed

Returns

\Zend\Mvc\Router\RouteMatch

 Properties

 

Length of the matched path.

$length : integer

Default

 

Matched route name.

$matchedRouteName : string

Default

 

Match parameters.

$params : array

Default

array()