|
Moodle
2.2.1
http://www.collinsharper.com
|
00001 <?php 00002 00027 require_once('Zend/Gdata/Query.php'); 00028 00032 require_once('Zend/Gdata/Gbase/Query.php'); 00033 00034 00046 class Zend_Gdata_Gbase_ItemQuery extends Zend_Gdata_Gbase_Query 00047 { 00051 const GBASE_ITEM_FEED_URI = 'http://www.google.com/base/feeds/items'; 00052 00058 protected $_defaultFeedUri = self::GBASE_ITEM_FEED_URI; 00059 00065 protected $_id = null; 00066 00071 public function setId($value) 00072 { 00073 $this->_id = $value; 00074 return $this; 00075 } 00076 00077 /* 00078 * @return string id 00079 */ 00080 public function getId() 00081 { 00082 return $this->_id; 00083 } 00084 00090 public function getQueryUrl() 00091 { 00092 $uri = $this->_defaultFeedUri; 00093 if ($this->getId() !== null) { 00094 $uri .= '/' . $this->getId(); 00095 } else { 00096 $uri .= $this->getQueryString(); 00097 } 00098 return $uri; 00099 } 00100 00101 }