public function getListResponse(KalturaFilterPager $pager, KalturaDetachedResponseProfile $responseProfile = null)
 {
     list($list, $totalCount) = $this->doGetListResponse($pager);
     $newList = KalturaLiveChannelArray::fromDbArray($list, $responseProfile);
     $response = new KalturaLiveChannelListResponse();
     $response->objects = $newList;
     $response->totalCount = $totalCount;
     return $response;
 }
Beispiel #2
0
 /**
  * List live channels by filter with paging support.
  * 
  * @action list
  * @param KalturaLiveChannelFilter $filter live channel filter
  * @param KalturaFilterPager $pager Pager
  * @return KalturaLiveChannelListResponse Wrapper for array of live channels and total count
  */
 function listAction(KalturaLiveChannelFilter $filter = null, KalturaFilterPager $pager = null)
 {
     if (!$filter) {
         $filter = new KalturaLiveChannelFilter();
     }
     $filter->typeEqual = KalturaEntryType::LIVE_CHANNEL;
     list($list, $totalCount) = parent::listEntriesByFilter($filter, $pager);
     $newList = KalturaLiveChannelArray::fromDbArray($list, $this->getResponseProfile());
     $response = new KalturaLiveChannelListResponse();
     $response->objects = $newList;
     $response->totalCount = $totalCount;
     return $response;
 }