package | Zend_Controller |
---|---|
subpackage | Router |
copyright | Copyright (c) 2005-2015 Zend Technologies USA Inc. (http://www.zend.com) |
license | New BSD License |
assemble(array $userParams, mixed $name= null
, boolean $reset= false
, boolean $encode= true
) : string
May be passed user params to override ones from URI, Request or even defaults. If passed parameter has a value of null, it's URL variable will be reset to default.
If null is passed as a route name assemble will use the current Route or 'default' if current is not yet set.
Reset is used to signal that all parameters should be reset to it's defaults. Ignoring all URL specified values. User specified params still get precedence.
Encode tells to url encode resulting path parts.
array
Options passed by a user used to override parameters
mixed
The name of a Route to use
boolean
Whether to reset to the route defaults ignoring URL params
boolean
Tells to encode URL parts on output
\Zend_Controller_Router_Exception |
---|
string
Resulting URL pathclearParams($name = null
) : \Zend_Controller_Router_Interface
By default, clears all parameters. If a parameter name is given, clears only that parameter; if an array of parameter names is provided, clears each.
\Zend_Controller_Router_Interface
getFrontController() : \Zend_Controller_Front
\Zend_Controller_Front
getParam(string $name) : mixed
string
mixed
getParams() : array
array
route(\Zend_Controller_Request_Abstract $dispatcher) : \Zend_Controller_Request_Abstract | boolean
\Zend_Controller_Router_Exception |
---|
\Zend_Controller_Request_Abstract
boolean
setFrontController(\Zend_Controller_Front $controller) : \Zend_Controller_Router_Interface
\Zend_Controller_Front
\Zend_Controller_Router_Interface
setParam(string $name, mixed $value) : \Zend_Controller_Router_Interface
string
mixed
\Zend_Controller_Router_Interface
setParams(array $params) : \Zend_Controller_Router_Interface
array
\Zend_Controller_Router_Interface