Controller/Dispatcher/Abstract.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_Abstract
- Implements
- Children
- \Zend_Controller_Dispatcher_Standard
- Category
- Zend
- Copyright
- Copyright (c) 2005-2014 Zend Technologies USA Inc. (http://www.zend.com)
- License
- New BSD License
Properties

array $_invokeParams = array()array()Details- Type
- array

\Zend_Controller_Response_Abstract|null $_response = nullnullDetails- Type
- \Zend_Controller_Response_Abstract | null
Methods

_formatName(string $unformatted, boolean $isAction = false) : stringFormats a string from a URI into a PHP-friendly name.
| Name | Type | Description |
|---|---|---|
| $unformatted | string | |
| $isAction | boolean | Defaults to false |
| Type | Description |
|---|---|
| string |

_verifyDelimiter(string | array $spec) : arrayVerify delimiter
| Name | Type | Description |
|---|---|---|
| $spec | string | array |
| Type | Description |
|---|---|
| array |
| Exception | Description |
|---|---|
| \Zend_Controller_Dispatcher_Exception | with invalid delimiters |

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

formatActionName(string $unformatted) : stringFormats a string into an action name. This is used to take a raw action name, such as one that would be stored inside a Zend_Controller_Request_Abstract 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) : stringFormats a string into a controller name. This is used to take a raw controller name, such as one stored inside a Zend_Controller_Request_Abstract 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 |

getDefaultAction() : stringRetrieve the default action name (minus formatting)
| Type | Description |
|---|---|
| string |

getDefaultControllerName() : stringRetrieve the default controller name (minus formatting)
| Type | Description |
|---|---|
| string |

getFrontController() : \Zend_Controller_FrontRetrieve front controller instance
| Type | Description |
|---|---|
| \Zend_Controller_Front |

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

getPathDelimiter() : arrayRetrieve the path delimiter character(s) used in controller names
| Type | Description |
|---|---|
| array |

getResponse() : \Zend_Controller_Response_Abstract | nullReturn the registered response object
| Type | Description |
|---|---|
| \Zend_Controller_Response_Abstract | null |

getWordDelimiter() : arrayRetrieve the word delimiter character(s) used in controller or action names
| Type | Description |
|---|---|
| array |

setDefaultAction(string $action) : \Zend_Controller_Dispatcher_AbstractSet the default action (minus any formatting)
| Name | Type | Description |
|---|---|---|
| $action | string |
| Type | Description |
|---|---|
| \Zend_Controller_Dispatcher_Abstract |

setDefaultControllerName(string $controller) : \Zend_Controller_Dispatcher_AbstractSet the default controller (minus any formatting)
| Name | Type | Description |
|---|---|---|
| $controller | string |
| Type | Description |
|---|---|
| \Zend_Controller_Dispatcher_Abstract |

setDefaultModule(string $module) : \Zend_Controller_Dispatcher_AbstractSet the default module
| Name | Type | Description |
|---|---|---|
| $module | string |
| Type | Description |
|---|---|
| \Zend_Controller_Dispatcher_Abstract |

setFrontController(\Zend_Controller_Front $controller) : \Zend_Controller_Dispatcher_AbstractSet front controller instance
| Name | Type | Description |
|---|---|---|
| $controller | \Zend_Controller_Front |
| Type | Description |
|---|---|
| \Zend_Controller_Dispatcher_Abstract |

setParam(string $name, mixed $value) : \Zend_Controller_Dispatcher_AbstractAdd or modify a parameter to use when instantiating an action controller
| Name | Type | Description |
|---|---|---|
| $name | string | |
| $value | mixed |
| Type | Description |
|---|---|
| \Zend_Controller_Dispatcher_Abstract |

setParams(array $params) : \Zend_Controller_Dispatcher_AbstractSet parameters to pass to action controller constructors
| Name | Type | Description |
|---|---|---|
| $params | array |
| Type | Description |
|---|---|
| \Zend_Controller_Dispatcher_Abstract |

setPathDelimiter(string $spec) : \Zend_Controller_Dispatcher_AbstractSet path delimiter
| Name | Type | Description |
|---|---|---|
| $spec | string |
| Type | Description |
|---|---|
| \Zend_Controller_Dispatcher_Abstract |

setResponse(\Zend_Controller_Response_Abstract | null $response = null) : \Zend_Controller_Dispatcher_AbstractSet response object to pass to action controllers
| Name | Type | Description |
|---|---|---|
| $response | \Zend_Controller_Response_Abstract | null |
| Type | Description |
|---|---|
| \Zend_Controller_Dispatcher_Abstract |

setWordDelimiter(string | array $spec) : \Zend_Controller_Dispatcher_AbstractSet word delimiter
| Name | Type | Description |
|---|---|---|
| $spec | string | array |
| Type | Description |
|---|---|
| \Zend_Controller_Dispatcher_Abstract |