Regex Route
Implements interface and provides convenience methods
package | Zend_Controller |
---|---|
subpackage | Router |
copyright | Copyright (c) 2005-2015 Zend Technologies USA Inc. (http://www.zend.com) |
license | New BSD License |
inherited_from | \Zend_Controller_Router_Route_Abstract |
__construct($route, array $defaults= array()
, array $map= array()
, null $reverse= null
)
array
array
null
assemble(array $data= array()
, boolean $reset= false
, boolean $encode= false
, boolean $partial= false
) : string
array
An array of name (or index) and value pairs used as parameters
boolean
boolean
boolean
\Zend_Controller_Router_Exception |
---|
string
Route path with user submitted parameterschain(\Zend_Controller_Router_Route_Abstract $route, string $separator = '/'
) : \Zend_Controller_Router_Route_Chain
\Zend_Controller_Router_Route_Abstract
string
\Zend_Controller_Router_Route_Chain
getDefault(string $name) : string
string
Array key of the parameter
string
Previously set defaultgetDefaults() : array
array
Route defaultsgetInstance(\Zend_Config $config) : \Zend_Controller_Router_Route_Regex
\Zend_Config
Configuration object
\Zend_Controller_Router_Route_Regex
getMatchedPath() : string
string
getVariables() : array
array
getVersion() : integer
inherited_from | \Zend_Controller_Router_Route_Abstract::getVersion() |
---|
integer
getVersion() : integer
integer
isAbstract(boolean $flag = null
) : boolean
boolean
boolean
match(string $path, $partial = false
) : array | false
Assigns and returns an array of defaults on a successful match.
string
Path used to match against this routing map
array
false
An array of assigned values or a false on a mismatchsetMatchedPath(string $path) : void
string
_arrayMergeNumericKeys(array $array1, array $array2) : array
php's array_merge() lacks the ability to merge with numeric keys.
array
array
array
_getMappedValues(array $values, boolean $reversed= false
, boolean $preserve= false
) : array
Or vice versa. Uses user provided map array which consists of index => name parameter mapping. If map is not found, it returns original array.
Method strips destination type of keys form source array. Ie. if source array is indexed numerically then every associative key will be stripped. Vice versa if reversed is set to true.
array
Indexed or associative array of values to map
boolean
False means translation of index to association. True means reverse.
boolean
Should wrong type of keys be preserved or stripped.
array
An array of mapped values$_defaults : array
array()
$_isAbstract : boolean
false
$_map : array
array()
$_matchedPath : string
null
$_regex : string | null
null
$_reverse : string | null
null
$_values : array
array()
URI_DELIMITER = '/'