Module Route

Default route for module functionality

package Zend_Controller
subpackage Router
copyright Copyright (c) 2005-2015 Zend Technologies USA Inc. (http://www.zend.com)
license New BSD License
see
inherited_from \Zend_Controller_Router_Route_Abstract

 Methods

Constructor

__construct(array $defaults = array(), \Zend_Controller_Dispatcher_Interface $dispatcher = null, \Zend_Controller_Request_Abstract $request = null

Parameters

$defaults

array

Defaults for map variables with keys as variable names

$dispatcher

\Zend_Controller_Dispatcher_Interface

Dispatcher object

$request

\Zend_Controller_Request_Abstract

Request object

Assembles user submitted parameters forming a URL path defined by this route

assemble(array $data = array(), boolean $reset = false, boolean $encode = true, boolean $partial = false) : string

Parameters

$data

array

An array of variable and value pairs used as parameters

$reset

boolean

Weither to reset the current params

$encode

boolean

$partial

boolean

Returns

stringRoute path with user submitted parameters

Create a new chain

chain(\Zend_Controller_Router_Route_Abstract $route, string $separator = '/') : \Zend_Controller_Router_Route_Chain
Inherited

Parameters

$route

\Zend_Controller_Router_Route_Abstract

$separator

string

Returns

\Zend_Controller_Router_Route_Chain

Return a single parameter of route's defaults

getDefault(string $name) : string

Parameters

$name

string

Array key of the parameter

Returns

stringPreviously set default

Return an array of defaults

getDefaults() : array

Returns

arrayRoute defaults

Instantiates route based on passed Zend_Config structure

getInstance(\Zend_Config $config) : \Zend_Controller_Router_Route_Module
Static

Parameters

$config

\Zend_Config

Returns

\Zend_Controller_Router_Route_Module

Get partially matched path

getMatchedPath() : string
Inherited

Returns

string

Get the version of the route

getVersion() : integer
inherited_from \Zend_Controller_Router_Route_Abstract::getVersion()

Returns

integer

Get the version of the route

getVersion() : integer
Inherited

Returns

integer

Check or set wether this is an abstract route or not

isAbstract(boolean $flag = null) : boolean
Inherited

Parameters

$flag

boolean

Returns

boolean

Matches a user submitted path. Assigns and returns an array of variables on a successful match.

match(string $path, boolean $partial = false) : array

If a request object is registered, it uses its setModuleName(), setControllerName(), and setActionName() accessors to set those values. Always returns the values as an array.

Parameters

$path

string

Path used to match against this routing map

$partial

boolean

Returns

arrayAn array of assigned values or a false on a mismatch

Set partially matched path

setMatchedPath(string $path) : void
Inherited

Parameters

$path

string

Set request keys based on values in request object

_setRequestKeys() : void

 Properties

 

$_actionKey

$_actionKey 

Default

'action'
 

$_controllerKey

$_controllerKey 

Default

'controller'
 

Default values for the route (ie. module, controller, action, params)

$_defaults : array

Default

 

$_dispatcher

$_dispatcher : \Zend_Controller_Dispatcher_Interface

Default

 

Wether this route is abstract or not

$_isAbstract : boolean

Default

false
 

$_keysSet

$_keysSet : boolean

Default

false
 

Path matched by this route

$_matchedPath : string

Default

null
 

$_moduleKey

$_moduleKey 

Default

'module'
 

$_moduleValid

$_moduleValid : boolean

Default

false
 

$_request

$_request : \Zend_Controller_Request_Abstract

Default

 

Default values for the route (ie. module, controller, action, params)

$_values : array

Default

array()

 Constants

 

URI delimiter

URI_DELIMITER = '/'