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