예제 #1
0
 /**
  * get entry count for a syndication feed
  *
  * @action getEntryCount
  * @param string $feedId
  * @return KalturaSyndicationFeedEntryCount
  */
 public function getEntryCountAction($feedId)
 {
     $feedCount = new KalturaSyndicationFeedEntryCount();
     $feedRenderer = new KalturaSyndicationFeedRenderer($feedId);
     $feedCount->totalEntryCount = $feedRenderer->getEntriesCount();
     $feedRenderer = new KalturaSyndicationFeedRenderer($feedId);
     $feedRenderer->addFlavorParamsAttachedFilter();
     $feedCount->actualEntryCount = $feedRenderer->getEntriesCount();
     $feedCount->requireTranscodingCount = $feedCount->totalEntryCount - $feedCount->actualEntryCount;
     return $feedCount;
 }
예제 #2
0
 /**
  * get entry count for a syndication feed
  *
  * @action getEntryCount
  * @param string $feedId
  * @return KalturaSyndicationFeedEntryCount
  * @throws KalturaErrors::INVALID_FEED_ID
  */
 public function getEntryCountAction($feedId)
 {
     $syndicationFeedDB = syndicationFeedPeer::retrieveByPK($feedId);
     if (!$syndicationFeedDB) {
         throw new KalturaAPIException(KalturaErrors::INVALID_FEED_ID, $feedId);
     }
     $feedCount = new KalturaSyndicationFeedEntryCount();
     $feedRenderer = new KalturaSyndicationFeedRenderer($feedId);
     $feedCount->totalEntryCount = $feedRenderer->getEntriesCount();
     $feedRenderer = new KalturaSyndicationFeedRenderer($feedId);
     $feedRenderer->addFlavorParamsAttachedFilter();
     $feedCount->actualEntryCount = $feedRenderer->getEntriesCount();
     $feedCount->requireTranscodingCount = $feedCount->totalEntryCount - $feedCount->actualEntryCount;
     return $feedCount;
 }