예제 #1
0
 /**
  * Wheter next link is needed for the current resource set (feed) 
  * being serialized.
  * 
  * @param int $resultSetCount Number of entries in the current 
  *                            resource set.
  * 
  * @return boolean true if the feed must have a next page link
  */
 protected function needNextPageLink($resultSetCount)
 {
     $currentResourceSet = $this->getCurrentResourceSetWrapper();
     $recursionLevel = count($this->_segmentNames);
     //$this->assert($recursionLevel != 0, '$recursionLevel != 0');
     $pageSize = $currentResourceSet->getResourceSetPageSize();
     if ($recursionLevel == 1) {
         //presence of $top option affect next link for root container
         $topValueCount = $this->request->getTopOptionCount();
         if (!is_null($topValueCount) && $topValueCount <= $pageSize) {
             return false;
         }
     }
     return $resultSetCount == $pageSize;
 }