|
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 00045 class Zend_Gdata_Gbase_SnippetQuery extends Zend_Gdata_Gbase_Query 00046 { 00050 const BASE_SNIPPET_FEED_URI = 'http://www.google.com/base/feeds/snippets'; 00051 00057 protected $_defaultFeedUri = self::BASE_SNIPPET_FEED_URI; 00058 00064 public function getQueryUrl() 00065 { 00066 $uri = $this->_defaultFeedUri; 00067 if ($this->getCategory() !== null) { 00068 $uri .= '/-/' . $this->getCategory(); 00069 } 00070 $uri .= $this->getQueryString(); 00071 return $uri; 00072 } 00073 00074 }