Controller/Dispatcher/Interface.php
- Category
- Zend
- Copyright
- Copyright (c) 2005-2014 Zend Technologies USA Inc. (http://www.zend.com)
- License
- New BSD License
- Package
- Zend_Controller
- Subpackage
- Dispatcher
- Version
- $Id$
\Zend_Controller_Dispatcher_Interface
- Copyright
- Copyright (c) 2005-2014 Zend Technologies USA Inc. (http://www.zend.com)
- License
- New BSD License
Methods


addControllerDirectory(string $path, string $args = null) : \Zend_Controller_Dispatcher_Interface
Add a controller directory to the controller directory stack
Name | Type | Description |
---|---|---|
$path | string | |
$args | string |
Type | Description |
---|---|
\Zend_Controller_Dispatcher_Interface |


clearParams( $name = null) : \Zend_Controller_Dispatcher_Interface
Clear the controller parameter stack
Name | Type | Description |
---|---|---|
$name |
Type | Description |
---|---|
\Zend_Controller_Dispatcher_Interface |


dispatch(\Zend_Controller_Request_Abstract $request, \Zend_Controller_Response_Abstract $response) : void
Dispatches a request object to a controller/action. If the action requests a forward to another action, a new request will be returned.
Name | Type | Description |
---|---|---|
$request | \Zend_Controller_Request_Abstract | |
$response | \Zend_Controller_Response_Abstract |


formatActionName(string $unformatted) : string
Formats a string into an action name. This is used to take a raw action name, such as one that would be packaged inside a request object, and reformat into a proper method name that would be found inside a class extending Zend_Controller_Action.
Name | Type | Description |
---|---|---|
$unformatted | string |
Type | Description |
---|---|
string |


formatControllerName(string $unformatted) : string
Formats a string into a controller name. This is used to take a raw controller name, such as one that would be packaged inside a request object, and reformat it to a proper class name that a class extending Zend_Controller_Action would use.
Name | Type | Description |
---|---|---|
$unformatted | string |
Type | Description |
---|---|
string |


formatModuleName(string $unformatted) : string
Formats a string into a module name. This is used to take a raw module name, such as one that would be packaged inside a request object, and reformat it to a proper directory/class name that a class extending Zend_Controller_Action would use.
Name | Type | Description |
---|---|---|
$unformatted | string |
Type | Description |
---|---|
string |


getControllerDirectory() : array
Return the currently set directory(ies) for controller file lookup
Type | Description |
---|---|
array |


getParam(string $name) : mixed
Retrieve a single parameter from the controller parameter stack
Name | Type | Description |
---|---|---|
$name | string |
Type | Description |
---|---|
mixed |


getParams() : array
Retrieve the parameters to pass to the Action Controller constructor
Type | Description |
---|---|
array |


getResponse() : \Zend_Controller_Response_Abstract | null
Retrieve the response object, if any
Type | Description |
---|---|
\Zend_Controller_Response_Abstract | null |


isDispatchable(\Zend_Controller_Request_Abstract $request) : boolean
Returns TRUE if an action can be dispatched, or FALSE otherwise.
Name | Type | Description |
---|---|---|
$request | \Zend_Controller_Request_Abstract |
Type | Description |
---|---|
boolean |


isValidModule(string $module) : boolean
Whether or not a given module is valid
Name | Type | Description |
---|---|---|
$module | string |
Type | Description |
---|---|
boolean |


setControllerDirectory( $path) : \Zend_Controller_Dispatcher_Interface
Set the directory where controller files are stored
Name | Type | Description |
---|---|---|
$path |
Type | Description |
---|---|
\Zend_Controller_Dispatcher_Interface |


setParam(string $name, mixed $value) : \Zend_Controller_Dispatcher_Interface
Add or modify a parameter with which to instantiate an Action Controller
Name | Type | Description |
---|---|---|
$name | string | |
$value | mixed |
Type | Description |
---|---|
\Zend_Controller_Dispatcher_Interface |


setParams(array $params) : \Zend_Controller_Dispatcher_Interface
Set an array of a parameters to pass to the Action Controller constructor
Name | Type | Description |
---|---|---|
$params | array |
Type | Description |
---|---|
\Zend_Controller_Dispatcher_Interface |


setResponse(\Zend_Controller_Response_Abstract | null $response = null) : void
Set the response object to use, if any
Name | Type | Description |
---|---|---|
$response | \Zend_Controller_Response_Abstract | null |