Zend Framework
1.12
|
Public Member Functions | |
__construct ($route, $defaults=array(), $map=array(), $reverse=null) | |
getVersion () | |
match ($path, $partial=false) | |
Matches a user submitted path with a previously defined route. | |
assemble ($data=array(), $reset=false, $encode=false, $partial=false) | |
Assembles a URL path defined by this route. | |
getDefault ($name) | |
Return a single parameter of route's defaults. | |
getDefaults () | |
Return an array of defaults. | |
getVariables () | |
Get all variables which are used by the route. | |
![]() | |
getVersion () | |
Get the version of the route. | |
setMatchedPath ($path) | |
Set partially matched path. | |
getMatchedPath () | |
Get partially matched path. | |
isAbstract ($flag=null) | |
Check or set wether this is an abstract route or not. | |
chain (Zend_Controller_Router_Route_Abstract $route, $separator= '/') | |
Create a new chain. | |
![]() | |
match ($path) | |
assemble ($data=array(), $reset=false, $encode=false) | |
Static Public Member Functions | |
static | getInstance (Zend_Config $config) |
Instantiates route based on passed Zend_Config structure. | |
Protected Member Functions | |
_getMappedValues ($values, $reversed=false, $preserve=false) | |
Maps numerically indexed array values to it's associative mapped counterpart. | |
_arrayMergeNumericKeys (Array $array1, Array $array2) | |
_arrayMergeNumericKeys() - allows for a strict key (numeric's included) array_merge. | |
Protected Attributes | |
$_regex = null | |
$_defaults = array() | |
$_reverse = null | |
$_map = array() | |
$_values = array() | |
![]() | |
$_isAbstract = false | |
$_matchedPath = null | |
Additional Inherited Members | |
![]() | |
const | URI_DELIMITER = '/' |
URI delimiter. | |
__construct | ( | $route, | |
$defaults = array() , |
|||
$map = array() , |
|||
$reverse = null |
|||
) |
|
protected |
_arrayMergeNumericKeys() - allows for a strict key (numeric's included) array_merge.
php's array_merge() lacks the ability to merge with numeric keys.
array | $array1 | |
array | $array2 |
|
protected |
Maps numerically indexed array values to it's associative mapped counterpart.
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 | $values | Indexed or associative array of values to map |
boolean | $reversed | False means translation of index to association. True means reverse. |
boolean | $preserve | Should wrong type of keys be preserved or stripped. |
assemble | ( | $data = array() , |
|
$reset = false , |
|||
$encode = false , |
|||
$partial = false |
|||
) |
Assembles a URL path defined by this route.
array | $data | An array of name (or index) and value pairs used as parameters |
getDefault | ( | $name | ) |
Return a single parameter of route's defaults.
string | $name | Array key of the parameter |
getDefaults | ( | ) |
Return an array of defaults.
|
static |
Instantiates route based on passed Zend_Config structure.
Zend_Config | $config | Configuration object |
Implements Zend_Controller_Router_Route_Interface.
getVariables | ( | ) |
Get all variables which are used by the route.
getVersion | ( | ) |
match | ( | $path, | |
$partial = false |
|||
) |
Matches a user submitted path with a previously defined route.
Assigns and returns an array of defaults on a successful match.
string | $path | Path used to match against this routing map |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |