Esempio n. 1
0
 public function getListResponse(KalturaFilterPager $pager, KalturaDetachedResponseProfile $responseProfile = null)
 {
     list($list, $totalCount) = $this->doGetListResponse($pager);
     $newList = KalturaMixEntryArray::fromDbArray($list, $responseProfile);
     $response = new KalturaBaseEntryListResponse();
     $response->objects = $newList;
     $response->totalCount = $totalCount;
     return $response;
 }
 /**
  * Get the mixes in which the media entry is included
  *
  * @action getMixesByMediaId
  * @param string $mediaEntryId
  * @return KalturaMixEntryArray
  */
 public function getMixesByMediaIdAction($mediaEntryId)
 {
     $dbMediaEntry = entryPeer::retrieveByPK($mediaEntryId);
     if (!$dbMediaEntry || $dbMediaEntry->getType() != KalturaEntryType::MEDIA_CLIP) {
         throw new KalturaAPIException(KalturaErrors::ENTRY_ID_NOT_FOUND, $mediaEntryId);
     }
     $list = roughcutEntry::getAllRoughcuts($mediaEntryId);
     $newList = KalturaMixEntryArray::fromEntryArray($list);
     return $newList;
 }