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); }
/** * Retrieve the previous set of results from this feed. * * @throws Zend_Gdata_App_Exception * @return mixed|null Returns the previous set of results as a feed of * the same class as this feed, or null if no results exist. */ public function getPreviousFeed() { $previousLink = $this->getPreviousLink(); if (!$previousLink) { require_once 'Zend/Gdata/App/HttpException.php'; throw new Zend_Gdata_App_Exception('No link to previous set ' . 'of results found.'); } $previousLinkHref = $previousLink->getHref(); $service = new Zend_Gdata_App($this->getHttpClient()); return $service->getFeed($previousLinkHref, get_class($this)); }