/**
  * List response profiles by filter and pager
  * 
  * @action list
  * @param KalturaFilterPager $filter
  * @param KalturaResponseProfileFilter $pager
  * @return KalturaResponseProfileListResponse
  */
 function listAction(KalturaResponseProfileFilter $filter = null, KalturaFilterPager $pager = null)
 {
     if (!$filter) {
         $filter = new KalturaResponseProfileFilter();
     }
     if (!$pager) {
         $pager = new KalturaFilterPager();
     }
     $responseProfileFilter = new ResponseProfileFilter();
     $filter->toObject($responseProfileFilter);
     $c = new Criteria();
     $responseProfileFilter->attachToCriteria($c);
     $totalCount = ResponseProfilePeer::doCount($c);
     $pager->attachToCriteria($c);
     $dbList = ResponseProfilePeer::doSelect($c);
     $list = KalturaResponseProfileArray::fromDbArray($dbList, $this->getResponseProfile());
     $response = new KalturaResponseProfileListResponse();
     $response->objects = $list;
     $response->totalCount = $totalCount;
     return $response;
 }
 /**
  * List response profiles by filter and pager
  * 
  * @action list
  * @param KalturaFilterPager $filter
  * @param KalturaResponseProfileFilter $pager
  * @return KalturaResponseProfileListResponse
  */
 function listAction(KalturaResponseProfileFilter $filter = null, KalturaFilterPager $pager = null)
 {
     if (!$filter) {
         $filter = new KalturaResponseProfileFilter();
     }
     //Add partner 0 to filter only in case systemNmae or Id are provided in the filter to avoid returning it by default
     if (isset($filter->systemNameEqual) || isset($filter->idEqual)) {
         $this->partnerGroup .= ",0";
     }
     $this->applyPartnerFilterForClass('ResponseProfile');
     if (!$pager) {
         $pager = new KalturaFilterPager();
     }
     $responseProfileFilter = new ResponseProfileFilter();
     $filter->toObject($responseProfileFilter);
     $c = new Criteria();
     $responseProfileFilter->attachToCriteria($c);
     $totalCount = ResponseProfilePeer::doCount($c);
     $pager->attachToCriteria($c);
     $dbList = ResponseProfilePeer::doSelect($c);
     $list = KalturaResponseProfileArray::fromDbArray($dbList, $this->getResponseProfile());
     $response = new KalturaResponseProfileListResponse();
     $response->objects = $list;
     $response->totalCount = $totalCount;
     return $response;
 }