Zend Framework
LICENSE
This source file is subject to the new BSD license that is bundled with this package in the file LICENSE.txt. It is also available through the world-wide-web at this URL: http://framework.zend.com/license/new-bsd If you did not receive a copy of the license and are unable to obtain it through the world-wide-web, please send an email to license@zend.com so we can send you a copy immediately.
Regex Route
$_defaults = 'array'
Details $_map = 'array'
Details $_regex = 'null'
Details $_reverse = 'null'
Details $_values = 'array'
Details__construct(
$route, $defaults
=
array, $map
=
array, $reverse
=
null
)
:
Details_arrayMergeNumericKeys(
array $array1, array $array2
)
:
array_arrayMergeNumericKeys() - allows for a strict key (numeric's included) array_merge.
php's array_merge() lacks the ability to merge with numeric keys.
Details_getMappedValues(
array $values, boolean $reversed
=
false, boolean $preserve
=
false
)
:
arrayMaps 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.
Detailsassemble(
array $data
=
array, $reset
=
false, $encode
=
false, $partial
=
false
)
:
stringAssembles a URL path defined by this route
DetailsgetDefault(
string $name
)
:
stringReturn a single parameter of route's defaults
DetailsgetDefaults(
)
:
arrayReturn an array of defaults
DetailsgetInstance(
Zend_Config $config
)
:
Instantiates route based on passed Zend_Config structure
DetailsgetVariables(
)
:
arrayGet all variables which are used by the route
DetailsgetVersion(
)
:
Detailsmatch(
string $path, $partial
=
false
)
:
array|falseMatches a user submitted path with a previously defined route.
Assigns and returns an array of defaults on a successful match.
Details