Detailed Description
Definition at line 52 of file Route.php.
Constructor & Destructor Documentation
Constructor
- Parameters:
-
| 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 |
Definition at line 78 of file Route.php.
Member Function Documentation
Determines if RESTful routing applies to the entire app
- Returns:
- bool
Definition at line 383 of file Route.php.
Determine if a specified module + controller combination supports RESTful routing
- Parameters:
-
| string | $moduleName | |
| string | $controllerName | |
- Returns:
- bool
Definition at line 361 of file Route.php.
Determine if a specified module supports RESTful routing
- Parameters:
-
- Returns:
- bool
Definition at line 339 of file Route.php.
Determines if RESTful routing applies to an entire module
- Parameters:
-
- Returns:
- bool
Definition at line 394 of file Route.php.
Parses the responders array sent to constructor to know which modules and/or controllers are RESTful
- Parameters:
-
Definition at line 317 of file Route.php.
Assembles user submitted parameters forming a URL path defined by this route
- Parameters:
-
| 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 |
- Returns:
- string Route path with user submitted parameters
Definition at line 244 of file Route.php.
Instantiates route based on passed Zend_Config structure
Definition at line 95 of file Route.php.
Tells Rewrite Router which version this Route is
- Returns:
- int Route "version"
Definition at line 306 of file Route.php.
| 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.
- Parameters:
-
| Zend_Controller_Request_Http | $request | Request used to match against this routing ruleset |
- Returns:
- array An array of assigned values or a false on a mismatch
Definition at line 124 of file Route.php.
Field Documentation
$_restfulControllers = null [protected] |
$_restfulModules = null [protected] |
The documentation for this class was generated from the following file:
- C:/xampp/htdocs/moodle/lib/zend/Zend/Rest/Route.php