function listAction(KalturaPermissionItemFilter $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("permissionitem", "list", $kparams); if ($this->client->isMultiRequest()) { return null; } $resultObject = $this->client->doQueue(); $this->client->throwExceptionIfError($resultObject); $this->client->validateObjectType($resultObject, "KalturaPermissionItemListResponse"); return $resultObject; }
/** * Lists permission item objects that are associated with an account. * * @action list * @param KalturaPermissionItemFilter $filter A filter used to exclude specific types of permission items * @param KalturaFilterPager $pager A limit for the number of records to display on a page * @return KalturaPermissionItemListResponse The list of permission item objects */ public function listAction(KalturaPermissionItemFilter $filter = null, KalturaFilterPager $pager = null) { if (!$filter) { $filter = new KalturaPermissionItemFilter(); } $permissionItemFilter = $filter->toObject(); $c = new Criteria(); $permissionItemFilter->attachToCriteria($c); $count = PermissionItemPeer::doCount($c); if (!$pager) { $pager = new KalturaFilterPager(); } $pager->attachToCriteria($c); $list = PermissionItemPeer::doSelect($c); $response = new KalturaPermissionItemListResponse(); $response->objects = KalturaPermissionItemArray::fromDbArray($list); $response->totalCount = $count; return $response; }
public function getOrderByMap() { return array_merge(parent::getOrderByMap(), self::$order_by_map); }
public function getOrderByMap() { return array_merge(parent::getOrderByMap(), $this->order_by_map); }
/** * Lists permission item objects that are associated with an account. * * @action list * @param KalturaPermissionItemFilter $filter A filter used to exclude specific types of permission items * @param KalturaFilterPager $pager A limit for the number of records to display on a page * @return KalturaPermissionItemListResponse The list of permission item objects */ public function listAction(KalturaPermissionItemFilter $filter = null, KalturaFilterPager $pager = null) { if (!$filter) { $filter = new KalturaPermissionItemFilter(); } return $filter->getListResponse($pager, $this->getResponseProfile()); }