public function getTypeListResponse(KalturaFilterPager $pager, KalturaDetachedResponseProfile $responseProfile = null, array $types = null)
 {
     list($list, $totalCount) = $this->doGetListResponse($pager, $types);
     $response = new KalturaCaptionParamsListResponse();
     $response->objects = KalturaCaptionParamsArray::fromDbArray($list, $responseProfile);
     $response->totalCount = $totalCount;
     return $response;
 }
 /**
  * List Caption Params by filter with paging support (By default - all system default params will be listed too)
  * 
  * @action list
  * @param KalturaCaptionParamsFilter $filter
  * @param KalturaFilterPager $pager
  * @return KalturaCaptionParamsListResponse
  */
 public function listAction(KalturaCaptionParamsFilter $filter = null, KalturaFilterPager $pager = null)
 {
     if (!$filter) {
         $filter = new KalturaCaptionParamsFilter();
     }
     if (!$pager) {
         $pager = new KalturaFilterPager();
     }
     $captionParamsFilter = new assetParamsFilter();
     $filter->toObject($captionParamsFilter);
     $c = new Criteria();
     $captionParamsFilter->attachToCriteria($c);
     $pager->attachToCriteria($c);
     $captionTypes = KalturaPluginManager::getExtendedTypes(assetParamsPeer::OM_CLASS, CaptionPlugin::getAssetTypeCoreValue(CaptionAssetType::CAPTION));
     $c->add(assetParamsPeer::TYPE, $captionTypes, Criteria::IN);
     $dbList = assetParamsPeer::doSelect($c);
     $c->setLimit(null);
     $totalCount = assetParamsPeer::doCount($c);
     $list = KalturaCaptionParamsArray::fromDbArray($dbList);
     $response = new KalturaCaptionParamsListResponse();
     $response->objects = $list;
     $response->totalCount = $totalCount;
     return $response;
 }