Zend Framework
1.12
|
Public Member Functions | |
setRequest (Zend_Controller_Request_Abstract $request=null) | |
Set the request object. | |
getRequest () | |
Get the request object. | |
__construct ($route, $defaults=array(), $reqs=array(), $scheme=null) | |
Prepares the route for mapping by splitting (exploding) it to a corresponding atomic parts. | |
match ($request) | |
Matches a user submitted path with parts defined by a map. | |
assemble ($data=array(), $reset=false, $encode=false, $partial=false) | |
Assembles user submitted parameters forming a hostname 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. | |
![]() | |
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 Attributes | |
$_hostVariable = ':' | |
$_regexDelimiter = '#' | |
$_defaultRegex = null | |
$_variables = array() | |
$_parts = array() | |
$_defaults = array() | |
$_requirements = array() | |
$_scheme = null | |
$_values = array() | |
$_request | |
![]() | |
$_isAbstract = false | |
$_matchedPath = null | |
Additional Inherited Members | |
![]() | |
const | URI_DELIMITER = '/' |
URI delimiter. | |
__construct | ( | $route, | |
$defaults = array() , |
|||
$reqs = array() , |
|||
$scheme = null |
|||
) |
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.
string | $route | Map used to match with later submitted hostname |
array | $defaults | Defaults for map variables with keys as variable names |
array | $reqs | Regular expression requirements for variables (keys as variable names) |
string | $scheme |
assemble | ( | $data = array() , |
|
$reset = false , |
|||
$encode = false , |
|||
$partial = false |
|||
) |
Assembles user submitted parameters forming a hostname defined by this route.
array | $data | An array of variable and value pairs used as parameters |
boolean | $reset | Whether or not to set route defaults with those provided in $data |
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.
getRequest | ( | ) |
Get the request object.
getVariables | ( | ) |
Get all variables which are used by the route.
match | ( | $request | ) |
Matches a user submitted path with parts defined by a map.
Assigns and returns an array of variables on a successful match.
Zend_Controller_Request_Http | $request | Request to get the host from |
Implements Zend_Controller_Router_Route_Interface.
setRequest | ( | Zend_Controller_Request_Abstract | $request = null | ) |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |