コード例 #1
0
 public function getListResponse(KalturaFilterPager $pager, KalturaDetachedResponseProfile $responseProfile = null)
 {
     list($list, $totalCount) = $this->doGetListResponse($pager);
     $newList = KalturaPlaylistArray::fromDbArray($list, $responseProfile);
     $response = new KalturaPlaylistListResponse();
     $response->objects = $newList;
     $response->totalCount = $totalCount;
     return $response;
 }
コード例 #2
0
ファイル: PlaylistService.php プロジェクト: wzur/server
 /**
  * List available playlists
  *
  * @action list
  * @param KalturaPlaylistFilter // TODO
  * @param KalturaFilterPager $pager
  * @return KalturaPlaylistListResponse
  */
 function listAction(KalturaPlaylistFilter $filter = null, KalturaFilterPager $pager = null)
 {
     myDbHelper::$use_alternative_con = myDbHelper::DB_HELPER_CONN_PROPEL3;
     if (!$filter) {
         $filter = new KalturaPlaylistFilter();
     }
     $filter->typeEqual = KalturaEntryType::PLAYLIST;
     list($list, $totalCount) = parent::listEntriesByFilter($filter, $pager);
     $newList = KalturaPlaylistArray::fromDbArray($list, $this->getResponseProfile());
     $response = new KalturaPlaylistListResponse();
     $response->objects = $newList;
     $response->totalCount = $totalCount;
     return $response;
 }