7 * This source file is subject to the new BSD license that is bundled
8 * with this package in the file LICENSE.txt.
9 * It is also available through the world-wide-web at this URL:
10 * http://framework.zend.com/license/new-bsd
11 * If you did not receive a copy of the license and are unable to
12 * obtain it through the world-wide-web, please send an email
13 * to license@zend.com so we can send you a copy immediately.
17 * @subpackage Framework
18 * @copyright Copyright (c) 2005-2009 Zend Technologies USA Inc. (http://www.zend.com)
19 * @license http://framework.zend.com/license/new-bsd New BSD License
20 * @version $Id: Request.php 16971 2009-07-22 18:05:45Z mikaelkael $
26 * @copyright Copyright (c) 2005-2009 Zend Technologies USA Inc. (http://www.zend.com)
27 * @license http://framework.zend.com/license/new-bsd New BSD License
29 class Zend_Tool_Framework_Client_Request
35 protected $_providerName = null;
40 protected $_specialtyName = null;
45 protected $_actionName = null;
50 protected $_actionParameters = array();
55 protected $_providerParameters = array();
60 protected $_isPretend = false;
65 protected $_isDebug = false;
70 protected $_isVerbose = false;
75 protected $_isDispatchable = true;
80 * @param string $providerName
81 * @return Zend_Tool_Framework_Client_Request
83 public function setProviderName($providerName)
85 $this->_providerName
= $providerName;
94 public function getProviderName()
96 return $this->_providerName
;
102 * @param string $specialtyName
103 * @return Zend_Tool_Framework_Client_Request
105 public function setSpecialtyName($specialtyName)
107 $this->_specialtyName
= $specialtyName;
116 public function getSpecialtyName()
118 return $this->_specialtyName
;
124 * @param string $actionName
125 * @return Zend_Tool_Framework_Client_Request
127 public function setActionName($actionName)
129 $this->_actionName
= $actionName;
138 public function getActionName()
140 return $this->_actionName
;
144 * setActionParameter()
146 * @param string $parameterName
147 * @param string $parameterValue
148 * @return Zend_Tool_Framework_Client_Request
150 public function setActionParameter($parameterName, $parameterValue)
152 $this->_actionParameters
[$parameterName] = $parameterValue;
157 * getActionParameters()
161 public function getActionParameters()
163 return $this->_actionParameters
;
167 * getActionParameter()
169 * @param string $parameterName
172 public function getActionParameter($parameterName)
174 return (isset($this->_actionParameters
[$parameterName])) ?
$this->_actionParameters
[$parameterName] : null;
178 * setProviderParameter()
180 * @param string $parameterName
181 * @param string $parameterValue
182 * @return Zend_Tool_Framework_Client_Request
184 public function setProviderParameter($parameterName, $parameterValue)
186 $this->_providerParameters
[$parameterName] = $parameterValue;
191 * getProviderParameters()
195 public function getProviderParameters()
197 return $this->_providerParameters
;
201 * getProviderParameter()
203 * @param string $parameterName
206 public function getProviderParameter($parameterName)
208 return (isset($this->_providerParameters
[$parameterName])) ?
$this->_providerParameters
[$parameterName] : null;
214 * @param bool $pretend
215 * @return Zend_Tool_Framework_Client_Request
217 public function setPretend($pretend)
219 $this->_isPretend
= (bool) $pretend;
224 * isPretend() - Whether or not this is a pretend request
228 public function isPretend()
230 return $this->_isPretend
;
236 * @param bool $pretend
237 * @return Zend_Tool_Framework_Client_Request
239 public function setDebug($debug)
241 $this->_isDebug
= (bool) $debug;
246 * isDebug() - Whether or not this is a debug enabled request
250 public function isDebug()
252 return $this->_isDebug
;
258 * @param bool $verbose
259 * @return Zend_Tool_Framework_Client_Request
261 public function setVerbose($verbose)
263 $this->_isVerbose
= (bool) $verbose;
268 * isVerbose() - Whether or not this is a verbose enabled request
272 public function isVerbose()
274 return $this->_isVerbose
;
280 * @param bool $dispatchable
281 * @return Zend_Tool_Framework_Client_Request
283 public function setDispatchable($dispatchable)
285 $this->_isDispatchable
= (bool) $dispatchable;
290 * isDispatchable() Is this request Dispatchable?
294 public function isDispatchable()
296 return $this->_isDispatchable
;