示例#1
0
文件: App.php 项目: bizanto/Hooked
 /**
  * Retrieve next set of results based on a given feed.
  *
  * @param Zend_Gdata_App_Feed $feed The feed from which to
  *          retreive the next set of results.
  * @param string $className (optional) The class of feed to be returned.
  *          If null, the next feed (if found) will be the same class as
  *          the feed that was given as the first argument.
  * @return Zend_Gdata_App_Feed|null Returns a
  *          Zend_Gdata_App_Feed or null if no next set of results
  *          exists.
  */
 public function getNextFeed($feed, $className = null)
 {
     $nextLink = $feed->getNextLink();
     if (!$nextLink) {
         return null;
     }
     $nextLinkHref = $nextLink->getHref();
     if ($className === null) {
         $className = get_class($feed);
     }
     return $this->getFeed($nextLinkHref, $className);
 }