Prepares the route for mapping by splitting (exploding) it to a corresponding atomic parts. These parts are assigned a position which is later used for matching and preparing values.
Zend_Controller_Router_Route
__construct
(string $route, [array $defaults = array()], [array $reqs = array()])
-
string
$route: Map used to match with later submitted URL path
-
array
$defaults: Defaults for map variables with keys as variable names
-
array
$reqs: Regular expression requirements for variables (keys as variable names)
Assembles user submitted parameters forming a URL path defined by this route
string
assemble
([array $data = array()], [ $reset = false])
-
array
$data: An array of variable and value pairs used as parameters
-
$reset
Implementation of:
- Zend_Controller_Router_Route_Interface::assemble()
Return a single parameter of route's defaults
string
getDefault
(name $name)
-
name
$name: Array key of the parameter
Return an array of defaults
array
getDefaults
()
Matches a user submitted path with parts defined by a map. Assigns and returns an array of variables on a successful match.
array|false
match
(string $path)
-
string
$path: Path used to match against this routing map
Implementation of:
- Zend_Controller_Router_Route_Interface::match()