'http://a9.com/-/spec/opensearchrss/1.0/', 'rss' => 'http://blogs.law.harvard.edu/tech/rss', 'gd' => 'http://schemas.google.com/g/2005'); /** * Create Gdata object * * @param Zend_Http_Client $client */ public function __construct($client = null) { parent::__construct($client); } /** * Retreive feed object * * @param mixed $location The location as string or Zend_Gdata_Query * @param string $className The class type to use for returning the feed * @return Zend_Gdata_Feed */ public function getFeed($location, $className='Zend_Gdata_Feed') { if (is_string($location)) { $uri = $location; } elseif ($location instanceof Zend_Gdata_Query) { $uri = $location->getQueryUrl(); } else { require_once 'Zend/Gdata/App/InvalidArgumentException.php'; throw new Zend_Gdata_App_InvalidArgumentException( 'You must specify the location as either a string URI ' . 'or a child of Zend_Gdata_Query'); } return parent::getFeed($uri, $className); } /** * Retreive entry object * * @param mixed $location The location as string or Zend_Gdata_Query * @return Zend_Gdata_Feed */ public function getEntry($location, $className='Zend_Gdata_Entry') { if (is_string($location)) { $uri = $location; } elseif ($location instanceof Zend_Gdata_Query) { $uri = $location->getQueryUrl(); } else { require_once 'Zend/Gdata/App/InvalidArgumentException.php'; throw new Zend_Gdata_App_InvalidArgumentException( 'You must specify the location as either a string URI ' . 'or a child of Zend_Gdata_Query'); } return parent::getEntry($uri, $className); } }