public function getListResponse(KalturaFilterPager $pager, KalturaDetachedResponseProfile $responseProfile = null) { $accessControlFilter = $this->toObject(); $c = new Criteria(); $accessControlFilter->attachToCriteria($c); $totalCount = accessControlPeer::doCount($c); $pager->attachToCriteria($c); $dbList = accessControlPeer::doSelect($c); $list = KalturaAccessControlArray::fromDbArray($dbList, $responseProfile); $response = new KalturaAccessControlListResponse(); $response->objects = $list; $response->totalCount = $totalCount; return $response; }
/** * List Access Control Profiles by filter and pager * * @action list * @param KalturaFilterPager $filter * @param KalturaAccessControlFilter $pager * @return KalturaAccessControlListResponse */ function listAction(KalturaAccessControlFilter $filter = null, KalturaFilterPager $pager = null) { if (!$filter) { $filter = new KalturaAccessControlFilter(); } if (!$pager) { $pager = new KalturaFilterPager(); } $accessControlFilter = new accessControlFilter(); $filter->toObject($accessControlFilter); $c = new Criteria(); $accessControlFilter->attachToCriteria($c); $totalCount = accessControlPeer::doCount($c); $pager->attachToCriteria($c); $dbList = accessControlPeer::doSelect($c); $list = KalturaAccessControlArray::fromDbArray($dbList); $response = new KalturaAccessControlListResponse(); $response->objects = $list; $response->totalCount = $totalCount; return $response; }