Rest Route
Request-aware route for RESTful modular routing
category | Zend |
---|---|
package | Zend_Rest |
copyright | Copyright (c) 2005-2015 Zend Technologies USA Inc. (http://www.zend.com) |
license | New BSD License |
inherited_from | \Zend_Controller_Router_Route_Module |
__construct(\Zend_Controller_Front $front, array $defaults= array()
, array $responders= array()
)
inherited_from | \Zend_Controller_Router_Route_Module::__construct() |
---|
\Zend_Controller_Front
Front Controller object
array
Defaults for map variables with keys as variable names
array
Modules or controllers to receive RESTful routes
__construct(array $defaults= array()
, \Zend_Controller_Dispatcher_Interface $dispatcher= null
, \Zend_Controller_Request_Abstract $request= null
)
array
Defaults for map variables with keys as variable names
\Zend_Controller_Dispatcher_Interface
Dispatcher object
\Zend_Controller_Request_Abstract
Request object
assemble(array $data= array()
, boolean $reset= false
, boolean $encode= true
) : string
inherited_from | \Zend_Controller_Router_Route_Module::assemble() |
---|
array
An array of variable and value pairs used as parameters
boolean
Weither to reset the current params
boolean
Weither to return urlencoded string
string
Route path with user submitted parametersassemble(array $data= array()
, boolean $reset= false
, boolean $encode= true
, boolean $partial= false
) : string
array
An array of variable and value pairs used as parameters
boolean
Weither to reset the current params
boolean
boolean
string
Route path with user submitted parameterschain(\Zend_Controller_Router_Route_Abstract $route, string $separator = '/'
) : \Zend_Controller_Router_Route_Chain
\Zend_Controller_Router_Route_Abstract
string
\Zend_Controller_Router_Route_Chain
getDefault(string $name) : string
string
Array key of the parameter
string
Previously set defaultgetDefaults() : array
array
Route defaultsgetInstance(\Zend_Config $config)
inherited_from | \Zend_Controller_Router_Route_Module::getInstance() |
---|
getInstance(\Zend_Config $config) : \Zend_Controller_Router_Route_Module
\Zend_Config
\Zend_Controller_Router_Route_Module
getMatchedPath() : string
string
getVersion() : integer
inherited_from | \Zend_Controller_Router_Route_Module::getVersion() |
---|
integer
Route "version"getVersion() : integer
integer
isAbstract(boolean $flag = null
) : boolean
boolean
boolean
match(\Zend_Controller_Request_Http $request, boolean $partial = false
) : array
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.
inherited_from | \Zend_Controller_Router_Route_Module::match() |
---|
\Zend_Controller_Request_Http
Request used to match against this routing ruleset
array
An array of assigned values or a false on a mismatchmatch(string $path, boolean $partial = false
) : array
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 used to match against this routing map
boolean
array
An array of assigned values or a false on a mismatchsetMatchedPath(string $path) : void
string
_allRestful() : boolean
boolean
_checkRestfulController(string $moduleName, string $controllerName) : boolean
string
string
boolean
_checkRestfulModule(string $moduleName) : boolean
string
boolean
_fullRestfulModule(string $moduleName) : boolean
string
boolean
_parseResponders(array $responders)
array
_setRequestKeys() : void
$_actionKey
'action'
$_controllerKey
'controller'
$_defaults : array
$_dispatcher : \Zend_Controller_Dispatcher_Interface
$_front : \Zend_Controller_Front
$_isAbstract : boolean
false
$_keysSet : boolean
false
$_matchedPath : string
null
$_moduleKey
'module'
$_moduleValid : boolean
false
$_request : \Zend_Controller_Request_Abstract
$_restfulControllers : array
null
$_restfulModules : array
null
$_values : array
array()
URI_DELIMITER = '/'