public function getTypeListResponse(KalturaFilterPager $pager, KalturaDetachedResponseProfile $responseProfile = null, array $types = null) { list($list, $totalCount) = $this->doGetListResponse($pager, $types); $response = new KalturaThumbParamsListResponse(); $response->objects = KalturaThumbParamsArray::fromDbArray($list, $responseProfile); $response->totalCount = $totalCount; return $response; }
/** * Get Thumb Params by Conversion Profile ID * * @action getByConversionProfileId * @param int $conversionProfileId * @return KalturaThumbParamsArray */ public function getByConversionProfileIdAction($conversionProfileId) { $conversionProfileDb = conversionProfile2Peer::retrieveByPK($conversionProfileId); if (!$conversionProfileDb) { throw new KalturaAPIException(KalturaErrors::CONVERSION_PROFILE_ID_NOT_FOUND, $conversionProfileId); } $thumbParamsConversionProfilesDb = $conversionProfileDb->getthumbParamsConversionProfilesJointhumbParams(); $thumbParamsDb = array(); foreach ($thumbParamsConversionProfilesDb as $item) { $thumbParamsDb[] = $item->getThumbParams(); } $thumbParams = KalturaThumbParamsArray::fromDbArray($thumbParamsDb); return $thumbParams; }