Zend Framework
1.12
|
Public Member Functions | |
getVersion () | |
__construct (array $defaults=array(), Zend_Controller_Dispatcher_Interface $dispatcher=null, Zend_Controller_Request_Abstract $request=null) | |
Constructor. | |
match ($path, $partial=false) | |
Matches a user submitted path. | |
assemble ($data=array(), $reset=false, $encode=true, $partial=false) | |
Assembles user submitted parameters forming a URL path defined by this route. | |
getDefault ($name) | |
Return a single parameter of route's defaults. | |
getDefaults () | |
Return an array of defaults. | |
![]() | |
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 | |
_setRequestKeys () | |
Set request keys based on values in request object. | |
Protected Attributes | |
$_defaults | |
$_values = array() | |
$_moduleValid = false | |
$_keysSet = false | |
$_moduleKey = 'module' | |
$_controllerKey = 'controller' | |
$_actionKey = 'action' | |
$_dispatcher | |
$_request | |
![]() | |
$_isAbstract = false | |
$_matchedPath = null | |
Additional Inherited Members | |
![]() | |
const | URI_DELIMITER = '/' |
URI delimiter. | |
__construct | ( | array | $defaults = array() , |
Zend_Controller_Dispatcher_Interface | $dispatcher = null , |
||
Zend_Controller_Request_Abstract | $request = null |
||
) |
Constructor.
array | $defaults | Defaults for map variables with keys as variable names |
Zend_Controller_Dispatcher_Interface | $dispatcher | Dispatcher object |
Zend_Controller_Request_Abstract | $request | Request object |
|
protected |
Set request keys based on values in request object.
assemble | ( | $data = array() , |
|
$reset = false , |
|||
$encode = true , |
|||
$partial = false |
|||
) |
Assembles user submitted parameters forming a URL path defined by this route.
array | $data | An array of variable and value pairs used as parameters |
bool | $reset | Weither to reset the current params |
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.
Implements Zend_Controller_Router_Route_Interface.
getVersion | ( | ) |
match | ( | $path, | |
$partial = false |
|||
) |
Matches a user submitted path.
Assigns and returns an array of variables on a successful match.
If a request object is registered, it uses its setModuleName(), setControllerName(), and setActionName() accessors to set those values. Always returns the values as an array.
string | $path | Path used to match against this routing map |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |