|
Moodle
2.2.1
http://www.collinsharper.com
|
00001 <?php 00002 00027 require_once('Zend/Gdata/Query.php'); 00028 00040 class Zend_Gdata_Gbase_Query extends Zend_Gdata_Query 00041 { 00042 00046 const GBASE_ITEM_FEED_URI = 'http://www.google.com/base/feeds/items'; 00047 00051 const GBASE_SNIPPET_FEED_URI = 'http://www.google.com/base/feeds/snippets'; 00052 00058 protected $_defaultFeedUri = self::GBASE_ITEM_FEED_URI; 00059 00064 public function setKey($value) 00065 { 00066 if ($value !== null) { 00067 $this->_params['key'] = $value; 00068 } else { 00069 unset($this->_params['key']); 00070 } 00071 return $this; 00072 } 00073 00078 public function setBq($value) 00079 { 00080 if ($value !== null) { 00081 $this->_params['bq'] = $value; 00082 } else { 00083 unset($this->_params['bq']); 00084 } 00085 return $this; 00086 } 00087 00092 public function setRefine($value) 00093 { 00094 if ($value !== null) { 00095 $this->_params['refine'] = $value; 00096 } else { 00097 unset($this->_params['refine']); 00098 } 00099 return $this; 00100 } 00101 00106 public function setContent($value) 00107 { 00108 if ($value !== null) { 00109 $this->_params['content'] = $value; 00110 } else { 00111 unset($this->_params['content']); 00112 } 00113 return $this; 00114 } 00115 00120 public function setOrderBy($value) 00121 { 00122 if ($value !== null) { 00123 $this->_params['orderby'] = $value; 00124 } else { 00125 unset($this->_params['orderby']); 00126 } 00127 return $this; 00128 } 00129 00134 public function setSortOrder($value) 00135 { 00136 if ($value !== null) { 00137 $this->_params['sortorder'] = $value; 00138 } else { 00139 unset($this->_params['sortorder']); 00140 } 00141 return $this; 00142 } 00143 00148 public function setCrowdBy($value) 00149 { 00150 if ($value !== null) { 00151 $this->_params['crowdby'] = $value; 00152 } else { 00153 unset($this->_params['crowdby']); 00154 } 00155 return $this; 00156 } 00157 00162 public function setAdjust($value) 00163 { 00164 if ($value !== null) { 00165 $this->_params['adjust'] = $value; 00166 } else { 00167 unset($this->_params['adjust']); 00168 } 00169 return $this; 00170 } 00171 00175 public function getKey() 00176 { 00177 if (array_key_exists('key', $this->_params)) { 00178 return $this->_params['key']; 00179 } else { 00180 return null; 00181 } 00182 } 00183 00187 public function getBq() 00188 { 00189 if (array_key_exists('bq', $this->_params)) { 00190 return $this->_params['bq']; 00191 } else { 00192 return null; 00193 } 00194 } 00195 00199 public function getRefine() 00200 { 00201 if (array_key_exists('refine', $this->_params)) { 00202 return $this->_params['refine']; 00203 } else { 00204 return null; 00205 } 00206 } 00207 00211 public function getContent() 00212 { 00213 if (array_key_exists('content', $this->_params)) { 00214 return $this->_params['content']; 00215 } else { 00216 return null; 00217 } 00218 } 00219 00223 public function getOrderBy() 00224 { 00225 if (array_key_exists('orderby', $this->_params)) { 00226 return $this->_params['orderby']; 00227 } else { 00228 return null; 00229 } 00230 } 00231 00235 public function getSortOrder() 00236 { 00237 if (array_key_exists('sortorder', $this->_params)) { 00238 return $this->_params['sortorder']; 00239 } else { 00240 return null; 00241 } 00242 } 00243 00247 public function getCrowdBy() 00248 { 00249 if (array_key_exists('crowdby', $this->_params)) { 00250 return $this->_params['crowdby']; 00251 } else { 00252 return null; 00253 } 00254 } 00255 00259 public function getAdjust() 00260 { 00261 if (array_key_exists('adjust', $this->_params)) { 00262 return $this->_params['adjust']; 00263 } else { 00264 return null; 00265 } 00266 } 00267 00268 }