コード例 #1
0
ファイル: App.php プロジェクト: hybridneo/zendgdata
 /**
  * Retrieve next set of results based on a given feed.
  *
  * @param \ZendGData\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 \ZendGData\App\Feed|null Returns a
  *          ZendGData\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);
 }