Controller/Request/Abstract.php
Zend Framework
LICENSE
This source file is subject to the new BSD license that is bundled
with this package in the file LICENSE.txt.
It is also available through the world-wide-web at this URL:
http://framework.zend.com/license/new-bsd
If you did not receive a copy of the license and are unable to
obtain it through the world-wide-web, please send an email
to license@zend.com so we can send you a copy immediately.
- Category
- Zend
- Copyright
- Copyright (c) 2005-2014 Zend Technologies USA Inc. (http://www.zend.com)
- License
- New BSD License
- Package
- Zend_Controller
- Version
- $Id$
\Zend_Controller_Request_Abstract
Package: Zend_Controller














Returns

Returns
- Children
- \Zend_Controller_Request_Http
- \Zend_Controller_Request_Simple
- Category
- Zend
- Copyright
- Copyright (c) 2005-2014 Zend Technologies USA Inc. (http://www.zend.com)
- License
- New BSD License
Properties

string $_actionKey = 'action'Action key for retrieving action from params
Default value
'action'Details- Type
- string

string $_controllerKey = 'controller'Controller key for retrieving controller from params
Default value
'controller'Details- Type
- string

string $_moduleKey = 'module'Module key for retrieving module from params
Default value
'module'Details- Type
- string
Methods

clearParams() : \Zend_Controller_Request_AbstractUnset all user parameters
Returns
| Type | Description |
|---|---|
| \Zend_Controller_Request_Abstract |

getParam(string $key, mixed $default = null) : mixedGet an action parameter
Parameters
Returns
| Name | Type | Description |
|---|---|---|
| $key | string | |
| $default | mixed | Default value to use if key not found |
| Type | Description |
|---|---|
| mixed |

getUserParam(string $key, string $default = null) : mixedRetrieve a single user param (i.e, a param specific to the object and not the environment)
Parameters
Returns
| Name | Type | Description |
|---|---|---|
| $key | string | |
| $default | string | Default value to use if key not found |
| Type | Description |
|---|---|
| mixed |

getUserParams() : arrayRetrieve only user params (i.e, any param specific to the object and not the environment)
Returns
| Type | Description |
|---|---|
| array |

setActionKey(string $key) : \Zend_Controller_Request_AbstractSet the action key
Parameters
Returns
| Name | Type | Description |
|---|---|---|
| $key | string |
| Type | Description |
|---|---|
| \Zend_Controller_Request_Abstract |

setActionName(string $value) : \Zend_Controller_Request_AbstractSet the action name
Parameters
Returns
| Name | Type | Description |
|---|---|---|
| $value | string |
| Type | Description |
|---|---|
| \Zend_Controller_Request_Abstract |

setControllerKey(string $key) : \Zend_Controller_Request_AbstractSet the controller key
Parameters
Returns
| Name | Type | Description |
|---|---|---|
| $key | string |
| Type | Description |
|---|---|
| \Zend_Controller_Request_Abstract |

setControllerName(string $value) : \Zend_Controller_Request_AbstractSet the controller name to use
Parameters
Returns
| Name | Type | Description |
|---|---|---|
| $value | string |
| Type | Description |
|---|---|
| \Zend_Controller_Request_Abstract |

setDispatched(boolean $flag = true) : \Zend_Controller_Request_AbstractSet flag indicating whether or not request has been dispatched
Parameters
Returns
| Name | Type | Description |
|---|---|---|
| $flag | boolean |
| Type | Description |
|---|---|
| \Zend_Controller_Request_Abstract |

setModuleKey(string $key) : \Zend_Controller_Request_AbstractSet the module key
Parameters
Returns
| Name | Type | Description |
|---|---|---|
| $key | string |
| Type | Description |
|---|---|
| \Zend_Controller_Request_Abstract |

setModuleName(string $value) : \Zend_Controller_Request_AbstractSet the module name to use
Parameters
Returns
| Name | Type | Description |
|---|---|---|
| $value | string |
| Type | Description |
|---|---|
| \Zend_Controller_Request_Abstract |

setParam(string $key, mixed $value) : \Zend_Controller_Request_AbstractSet an action parameter
A $value of null will unset the $key if it exists
Parameters| Name | Type | Description |
|---|---|---|
| $key | string | |
| $value | mixed |
| Type | Description |
|---|---|
| \Zend_Controller_Request_Abstract |

setParams(array $array) : \Zend_Controller_Request_AbstractSet action parameters en masse; does not overwrite
Null values will unset the associated key.
Parameters| Name | Type | Description |
|---|---|---|
| $array | array |
| Type | Description |
|---|---|
| \Zend_Controller_Request_Abstract |