/** * List KalturaDrmPolicy objects * * @param KalturaDrmPolicyFilter $filter * @param KalturaFilterPager $pager * @return KalturaDrmPolicyListResponse */ function listAction(KalturaDrmPolicyFilter $filter = null, KalturaFilterPager $pager = null) { $kparams = array(); if ($filter !== null) { $this->client->addParam($kparams, "filter", $filter->toParams()); } if ($pager !== null) { $this->client->addParam($kparams, "pager", $pager->toParams()); } $this->client->queueServiceActionCall("drm_drmpolicy", "list", $kparams); if ($this->client->isMultiRequest()) { return $this->client->getMultiRequestResult(); } $resultObject = $this->client->doQueue(); $this->client->throwExceptionIfError($resultObject); $this->client->validateObjectType($resultObject, "KalturaDrmPolicyListResponse"); return $resultObject; }
/** * List KalturaDrmPolicy objects * * @action list * @param KalturaDrmPolicyFilter $filter * @param KalturaFilterPager $pager * @return KalturaDrmPolicyListResponse */ public function listAction(KalturaDrmPolicyFilter $filter = null, KalturaFilterPager $pager = null) { if (!$filter) { $filter = new KalturaDrmPolicyFilter(); } $drmPolicyFilter = $filter->toObject(); $c = new Criteria(); $drmPolicyFilter->attachToCriteria($c); $count = DrmPolicyPeer::doCount($c); if (!$pager) { $pager = new KalturaFilterPager(); } $pager->attachToCriteria($c); $list = DrmPolicyPeer::doSelect($c); $response = new KalturaDrmPolicyListResponse(); $response->objects = KalturaDrmPolicyArray::fromDbArray($list, $this->getResponseProfile()); $response->totalCount = $count; return $response; }
public function getOrderByMap() { return array_merge(parent::getOrderByMap(), self::$order_by_map); }