8 * This source file is subject to the new BSD license that is bundled
9 * with this package in the file LICENSE.txt.
10 * It is also available through the world-wide-web at this URL:
11 * http://framework.zend.com/license/new-bsd
12 * If you did not receive a copy of the license and are unable to
13 * obtain it through the world-wide-web, please send an email
14 * to license@zend.com so we can send you a copy immediately.
19 * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
20 * @license http://framework.zend.com/license/new-bsd New BSD License
25 * @see Zend_Gdata_Query
27 require_once('Zend/Gdata/Query.php');
30 * Assists in constructing queries for Google Base
32 * @link http://code.google.com/apis/base
37 * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
38 * @license http://framework.zend.com/license/new-bsd New BSD License
40 class Zend_Gdata_Gbase_Query extends Zend_Gdata_Query
44 * Path to the customer items feeds on the Google Base server.
46 const GBASE_ITEM_FEED_URI = 'http://www.google.com/base/feeds/items';
49 * Path to the snippets feeds on the Google Base server.
51 const GBASE_SNIPPET_FEED_URI = 'http://www.google.com/base/feeds/snippets';
54 * The default URI for POST methods
58 protected $_defaultFeedUri = self::GBASE_ITEM_FEED_URI;
61 * @param string $value
62 * @return Zend_Gdata_Gbase_Query Provides a fluent interface
64 public function setKey($value)
66 if ($value !== null) {
67 $this->_params['key'] = $value;
69 unset($this->_params['key']);
75 * @param string $value
76 * @return Zend_Gdata_Gbase_ItemQuery Provides a fluent interface
78 public function setBq($value)
80 if ($value !== null) {
81 $this->_params['bq'] = $value;
83 unset($this->_params['bq']);
89 * @param string $value
90 * @return Zend_Gdata_Gbase_ItemQuery Provides a fluent interface
92 public function setRefine($value)
94 if ($value !== null) {
95 $this->_params['refine'] = $value;
97 unset($this->_params['refine']);
103 * @param string $value
104 * @return Zend_Gdata_Gbase_ItemQuery Provides a fluent interface
106 public function setContent($value)
108 if ($value !== null) {
109 $this->_params['content'] = $value;
111 unset($this->_params['content']);
117 * @param string $value
118 * @return Zend_Gdata_Gbase_ItemQuery Provides a fluent interface
120 public function setOrderBy($value)
122 if ($value !== null) {
123 $this->_params['orderby'] = $value;
125 unset($this->_params['orderby']);
131 * @param string $value
132 * @return Zend_Gdata_Gbase_ItemQuery Provides a fluent interface
134 public function setSortOrder($value)
136 if ($value !== null) {
137 $this->_params['sortorder'] = $value;
139 unset($this->_params['sortorder']);
145 * @param string $value
146 * @return Zend_Gdata_Gbase_ItemQuery Provides a fluent interface
148 public function setCrowdBy($value)
150 if ($value !== null) {
151 $this->_params['crowdby'] = $value;
153 unset($this->_params['crowdby']);
159 * @param string $value
160 * @return Zend_Gdata_Gbase_ItemQuery Provides a fluent interface
162 public function setAdjust($value)
164 if ($value !== null) {
165 $this->_params['adjust'] = $value;
167 unset($this->_params['adjust']);
175 public function getKey()
177 if (array_key_exists('key', $this->_params)) {
178 return $this->_params['key'];
187 public function getBq()
189 if (array_key_exists('bq', $this->_params)) {
190 return $this->_params['bq'];
197 * @return string refine
199 public function getRefine()
201 if (array_key_exists('refine', $this->_params)) {
202 return $this->_params['refine'];
209 * @return string content
211 public function getContent()
213 if (array_key_exists('content', $this->_params)) {
214 return $this->_params['content'];
221 * @return string orderby
223 public function getOrderBy()
225 if (array_key_exists('orderby', $this->_params)) {
226 return $this->_params['orderby'];
233 * @return string sortorder
235 public function getSortOrder()
237 if (array_key_exists('sortorder', $this->_params)) {
238 return $this->_params['sortorder'];
245 * @return string crowdby
247 public function getCrowdBy()
249 if (array_key_exists('crowdby', $this->_params)) {
250 return $this->_params['crowdby'];
257 * @return string adjust
259 public function getAdjust()
261 if (array_key_exists('adjust', $this->_params)) {
262 return $this->_params['adjust'];