public function getOrderByMap() { return array_merge(parent::getOrderByMap(), $this->order_by_map); }
/** * Action lists the template partner event notification templates. * @action listTemplates * * @param KalturaEventNotificationTemplateFilter $filter * @param KalturaFilterPager $pager * @return KalturaEventNotificationTemplateListResponse */ public function listTemplatesAction(KalturaEventNotificationTemplateFilter $filter = null, KalturaFilterPager $pager = null) { if (!$filter) { $filter = new KalturaEventNotificationTemplateFilter(); } if (!$pager) { $pager = new KalturaFilterPager(); } $coreFilter = new EventNotificationTemplateFilter(); $filter->toObject($coreFilter); $criteria = new Criteria(); $coreFilter->attachToCriteria($criteria); $criteria->add(EventNotificationTemplatePeer::PARTNER_ID, PartnerPeer::GLOBAL_PARTNER); $count = EventNotificationTemplatePeer::doCount($criteria); $pager->attachToCriteria($criteria); $results = EventNotificationTemplatePeer::doSelect($criteria); $response = new KalturaEventNotificationTemplateListResponse(); $response->objects = KalturaEventNotificationTemplateArray::fromDbArray($results, $this->getResponseProfile()); $response->totalCount = $count; return $response; }
/** * Action lists the template partner event notification templates. * * @param KalturaEventNotificationTemplateFilter $filter * @param KalturaFilterPager $pager * @return KalturaEventNotificationTemplateListResponse */ function listTemplates(KalturaEventNotificationTemplateFilter $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("eventnotification_eventnotificationtemplate", "listTemplates", $kparams); if ($this->client->isMultiRequest()) { return $this->client->getMultiRequestResult(); } $resultObject = $this->client->doQueue(); $this->client->throwExceptionIfError($resultObject); $this->client->validateObjectType($resultObject, "KalturaEventNotificationTemplateListResponse"); return $resultObject; }
public function getOrderByMap() { return array_merge(parent::getOrderByMap(), self::$order_by_map); }