コード例 #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;
 }
コード例 #2
0
ファイル: MixingService.php プロジェクト: DBezemer/server
 /**
  * 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::fromDbArray($list, $this->getResponseProfile());
     return $newList;
 }