*prechod na novsiu verziu ZF
[sport-group.git] / library / Zend / Tool / Framework / Client / Request.php
bloba276c2bca0b5479178dc3745656f6fcd611bde5f
1 <?php
2 /**
3 * Zend Framework
5 * LICENSE
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.
15 * @category Zend
16 * @package Zend_Tool
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 $
23 /**
24 * @category Zend
25 * @package Zend_Tool
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
32 /**
33 * @var string
35 protected $_providerName = null;
37 /**
38 * @var string
40 protected $_specialtyName = null;
42 /**
43 * @var string
45 protected $_actionName = null;
47 /**
48 * @var array
50 protected $_actionParameters = array();
52 /**
53 * @var array
55 protected $_providerParameters = array();
57 /**
58 * @var bool
60 protected $_isPretend = false;
62 /**
63 * @var bool
65 protected $_isDebug = false;
67 /**
68 * @var bool
70 protected $_isVerbose = false;
72 /**
73 * @var bool
75 protected $_isDispatchable = true;
77 /**
78 * setProviderName()
80 * @param string $providerName
81 * @return Zend_Tool_Framework_Client_Request
83 public function setProviderName($providerName)
85 $this->_providerName = $providerName;
86 return $this;
89 /**
90 * getProviderName()
92 * @return string
94 public function getProviderName()
96 return $this->_providerName;
99 /**
100 * setSpecialtyName()
102 * @param string $specialtyName
103 * @return Zend_Tool_Framework_Client_Request
105 public function setSpecialtyName($specialtyName)
107 $this->_specialtyName = $specialtyName;
108 return $this;
112 * getSpecialtyName()
114 * @return string
116 public function getSpecialtyName()
118 return $this->_specialtyName;
122 * setActionName()
124 * @param string $actionName
125 * @return Zend_Tool_Framework_Client_Request
127 public function setActionName($actionName)
129 $this->_actionName = $actionName;
130 return $this;
134 * getActionName()
136 * @return string
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;
153 return $this;
157 * getActionParameters()
159 * @return array
161 public function getActionParameters()
163 return $this->_actionParameters;
167 * getActionParameter()
169 * @param string $parameterName
170 * @return string
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;
187 return $this;
191 * getProviderParameters()
193 * @return array
195 public function getProviderParameters()
197 return $this->_providerParameters;
201 * getProviderParameter()
203 * @param string $parameterName
204 * @return string
206 public function getProviderParameter($parameterName)
208 return (isset($this->_providerParameters[$parameterName])) ? $this->_providerParameters[$parameterName] : null;
212 * setPretend()
214 * @param bool $pretend
215 * @return Zend_Tool_Framework_Client_Request
217 public function setPretend($pretend)
219 $this->_isPretend = (bool) $pretend;
220 return $this;
224 * isPretend() - Whether or not this is a pretend request
226 * @return bool
228 public function isPretend()
230 return $this->_isPretend;
234 * setDebug()
236 * @param bool $pretend
237 * @return Zend_Tool_Framework_Client_Request
239 public function setDebug($debug)
241 $this->_isDebug = (bool) $debug;
242 return $this;
246 * isDebug() - Whether or not this is a debug enabled request
248 * @return bool
250 public function isDebug()
252 return $this->_isDebug;
256 * setVerbose()
258 * @param bool $verbose
259 * @return Zend_Tool_Framework_Client_Request
261 public function setVerbose($verbose)
263 $this->_isVerbose = (bool) $verbose;
264 return $this;
268 * isVerbose() - Whether or not this is a verbose enabled request
270 * @return bool
272 public function isVerbose()
274 return $this->_isVerbose;
278 * setDispatchable()
280 * @param bool $dispatchable
281 * @return Zend_Tool_Framework_Client_Request
283 public function setDispatchable($dispatchable)
285 $this->_isDispatchable = (bool) $dispatchable;
286 return $this;
290 * isDispatchable() Is this request Dispatchable?
292 * @return bool
294 public function isDispatchable()
296 return $this->_isDispatchable;