Пример #1
0
 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;
 }
Пример #2
0
 /**
  * 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;
 }