public function getListResponse(KalturaFilterPager $pager, KalturaDetachedResponseProfile $responseProfile = null) { list($list, $totalCount) = $this->doGetListResponse($pager); $newList = KalturaLiveStreamEntryArray::fromDbArray($list, $responseProfile); $response = new KalturaBaseEntryListResponse(); $response->objects = $newList; $response->totalCount = $totalCount; return $response; }
/** * List live stream entries by filter with paging support. * * @action list * @param KalturaLiveStreamEntryFilter $filter live stream entry filter * @param KalturaFilterPager $pager Pager * @return KalturaLiveStreamListResponse Wrapper for array of live stream entries and total count */ function listAction(KalturaLiveStreamEntryFilter $filter = null, KalturaFilterPager $pager = null) { if (!$filter) { $filter = new KalturaLiveStreamEntryFilter(); } $filter->typeEqual = KalturaEntryType::LIVE_STREAM; list($list, $totalCount) = parent::listEntriesByFilter($filter, $pager); $newList = KalturaLiveStreamEntryArray::fromEntryArray($list); $response = new KalturaLiveStreamListResponse(); $response->objects = $newList; $response->totalCount = $totalCount; return $response; }