Hostname route.

package Default

 Methods

Create a new hostname route.

__construct(string $route, array $constraints = array(), array $defaults = array()

Parameters

$route

string

$constraints

array

$defaults

array

assemble(): Defined by RouteInterface interface.

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

Parameters

$params

array

$options

array

Returns

mixed

factory(): defined by RouteInterface interface.

factory(array|\Traversable $options = array()) : \Zend\Mvc\Router\Http\Hostname
Static
see

Parameters

$options

array\Traversable

Exceptions

\Zend\Mvc\Router\Exception\InvalidArgumentException

Returns

\Zend\Mvc\Router\Http\Hostname

getAssembledParams(): defined by RouteInterface interface.

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

Returns

array

match(): defined by RouteInterface interface.

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

Parameters

$request

\Zend\Stdlib\RequestInterface

Returns

\Zend\Mvc\Router\Http\RouteMatchnull

Build host.

buildHost(array $parts, array $mergedParams, boolean $isOptional) : string

Parameters

$parts

array

$mergedParams

array

$isOptional

boolean

Exceptions

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

Returns

string

Build the matching regex from parsed parts.

buildRegex(array $parts, array $constraints, integer $groupIndex = 1) : string

Parameters

$parts

array

$constraints

array

$groupIndex

integer

Exceptions

\Zend\Mvc\Router\Exception\RuntimeException

Returns

string

Parse a route definition.

parseRouteDefinition(string $def) : array

Parameters

$def

string

Exceptions

\Zend\Mvc\Router\Exception\RuntimeException

Returns

array

 Properties

 

List of assembled parameters.

$assembledParams : array

Default

array()
 

Default values.

$defaults : array

Default

 

Map from regex groups to parameter names.

$paramMap : array

Default

array()
 

Parts of the route.

$parts : array

Default

 

Regex used for matching the route.

$regex : string

Default