Zend Framework
1.12
|
Public Member Functions | |
__construct (Zend_Controller_Front $front, array $defaults=array(), array $responders=array()) | |
Constructor. | |
match ($request, $partial=false) | |
Matches a user submitted request. | |
assemble ($data=array(), $reset=false, $encode=true) | |
Assembles user submitted parameters forming a URL path defined by this route. | |
getVersion () | |
Tells Rewrite Router which version this Route is. | |
![]() | |
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) | |
Static Public Member Functions | |
static | getInstance (Zend_Config $config) |
Instantiates route based on passed Zend_Config structure. | |
![]() | |
static | getInstance (Zend_Config $config) |
Instantiates route based on passed Zend_Config structure. | |
Protected Member Functions | |
_parseResponders ($responders) | |
Parses the responders array sent to constructor to know which modules and/or controllers are RESTful. | |
_checkRestfulModule ($moduleName) | |
Determine if a specified module supports RESTful routing. | |
_checkRestfulController ($moduleName, $controllerName) | |
Determine if a specified module + controller combination supports RESTful routing. | |
_allRestful () | |
Determines if RESTful routing applies to the entire app. | |
_fullRestfulModule ($moduleName) | |
Determines if RESTful routing applies to an entire module. | |
![]() | |
_setRequestKeys () | |
Set request keys based on values in request object. | |
Protected Attributes | |
$_restfulModules = null | |
$_restfulControllers = null | |
$_front | |
![]() | |
$_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 | ( | Zend_Controller_Front | $front, |
array | $defaults = array() , |
||
array | $responders = array() |
||
) |
Constructor.
Zend_Controller_Front | $front | Front Controller object |
array | $defaults | Defaults for map variables with keys as variable names |
array | $responders | Modules or controllers to receive RESTful routes |
|
protected |
Determines if RESTful routing applies to the entire app.
|
protected |
Determine if a specified module + controller combination supports RESTful routing.
string | $moduleName | |
string | $controllerName |
|
protected |
Determine if a specified module supports RESTful routing.
string | $moduleName |
|
protected |
Determines if RESTful routing applies to an entire module.
string | $moduleName |
|
protected |
Parses the responders array sent to constructor to know which modules and/or controllers are RESTful.
array | $responders |
assemble | ( | $data = array() , |
|
$reset = false , |
|||
$encode = true |
|||
) |
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 |
bool | $encode | Weither to return urlencoded string |
Implements Zend_Controller_Router_Route_Interface.
|
static |
Instantiates route based on passed Zend_Config structure.
Implements Zend_Controller_Router_Route_Interface.
getVersion | ( | ) |
Tells Rewrite Router which version this Route is.
match | ( | $request, | |
$partial = false |
|||
) |
Matches a user submitted request.
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.
Zend_Controller_Request_Http | $request | Request used to match against this routing ruleset |
|
protected |
|
protected |
|
protected |