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; }
/** * 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; }