public function getTypeListResponse(KalturaFilterPager $pager, KalturaDetachedResponseProfile $responseProfile = null, array $types = null) { list($list, $totalCount) = $this->doGetListResponse($pager, $types); $response = new KalturaFlavorParamsOutputListResponse(); $response->objects = KalturaFlavorParamsOutputArray::fromDbArray($list, $responseProfile); $response->totalCount = $totalCount; return $response; }
/** * List flavor params output objects by filter and pager * * @action list * @param KalturaFlavorParamsOutputFilter $filter * @param KalturaFilterPager $pager * @return KalturaFlavorParamsOutputListResponse */ function listAction(KalturaFlavorParamsOutputFilter $filter = null, KalturaFilterPager $pager = null) { if (!$filter) { $filter = new KalturaFlavorParamsOutputFilter(); } if (!$pager) { $pager = new KalturaFilterPager(); } $flavorParamsOutputFilter = new assetParamsOutputFilter(); $filter->toObject($flavorParamsOutputFilter); $c = new Criteria(); $flavorParamsOutputFilter->attachToCriteria($c); $totalCount = flavorParamsOutputPeer::doCount($c); $pager->attachToCriteria($c); $dbList = flavorParamsOutputPeer::doSelect($c); $list = KalturaFlavorParamsOutputArray::fromDbArray($dbList); $response = new KalturaFlavorParamsOutputListResponse(); $response->objects = $list; $response->totalCount = $totalCount; return $response; }
/** * List flavor params output objects by filter and pager * * @action list * @param KalturaFlavorParamsOutputFilter $filter * @param KalturaFilterPager $pager * @return KalturaFlavorParamsOutputListResponse */ function listAction(KalturaFlavorParamsOutputFilter $filter = null, KalturaFilterPager $pager = null) { if (!$filter) { $filter = new KalturaFlavorParamsOutputFilter(); } if (!$pager) { $pager = new KalturaFilterPager(); } $flavorParamsOutputFilter = new assetParamsOutputFilter(); $filter->toObject($flavorParamsOutputFilter); $c = new Criteria(); $flavorParamsOutputFilter->attachToCriteria($c); $flavorTypes = KalturaPluginManager::getExtendedTypes(assetParamsOutputPeer::OM_CLASS, assetType::FLAVOR); $c->add(assetParamsOutputPeer::TYPE, $flavorTypes, Criteria::IN); $totalCount = assetParamsOutputPeer::doCount($c); $pager->attachToCriteria($c); $dbList = assetParamsOutputPeer::doSelect($c); $list = KalturaFlavorParamsOutputArray::fromDbArray($dbList); $response = new KalturaFlavorParamsOutputListResponse(); $response->objects = $list; $response->totalCount = $totalCount; return $response; }