/** * @action list * @param KalturaReportFilter $filter * @param KalturaReport $report * @return KalturaReportListResponse */ function listAction(KalturaReportFilter $filter = null, KalturaFilterPager $pager = null) { if (!$filter) { $filter = new KalturaReportFilter(); } if (!$pager) { $pager = new KalturaFilterPager(); } $reportFilter = new ReportFilter(); $filter->toObject($reportFilter); $c = new Criteria(); $reportFilter->attachToCriteria($c); $pager->attachToCriteria($c); $dbList = ReportPeer::doSelect($c); $c->setLimit(null); $totalCount = ReportPeer::doCount($c); $list = KalturaReportArray::fromDbArray($dbList, $this->getResponseProfile()); $response = new KalturaReportListResponse(); $response->objects = $list; $response->totalCount = $totalCount; return $response; }
/** * * * @param KalturaReportFilter $filter * @param KalturaFilterPager $pager * @return KalturaReportListResponse */ function listAction(KalturaReportFilter $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("adminconsole_reportadmin", "list", $kparams); if ($this->client->isMultiRequest()) { return $this->client->getMultiRequestResult(); } $resultObject = $this->client->doQueue(); $this->client->throwExceptionIfError($resultObject); $this->client->validateObjectType($resultObject, "KalturaReportListResponse"); return $resultObject; }