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