/** * report getTotal action allows to get a graph data for a specific report. * * @action getTotal * @param KalturaReportType $reportType * @param KalturaReportInputFilter $reportInputFilter * @param string $objectIds - one ID or more (separated by ',') of specific objects to query * @return KalturaReportTotal */ function getTotalAction($reportType, KalturaReportInputFilter $reportInputFilter, $objectIds = null) { $reportTotal = new KalturaReportTotal(); list($header, $data) = myReportsMgr::getTotal($this->getPartnerId(), $reportType, $reportInputFilter->toReportsInputFilter(), $objectIds); $reportTotal->fromReportTotal($header, $data); return $reportTotal; }
/** * report getTotal action allows to get a graph data for a specific report. * * @action getTotal * @param KalturaReportType $reportType * @param KalturaReportInputFilter $reportInputFilter * @param string $objectIds - one ID or more (separated by ',') of specific objects to query * @return KalturaReportTotal */ public function getTotalAction($reportType, KalturaReportInputFilter $reportInputFilter, $objectIds = null) { if ($reportType == KalturaReportType::PARTNER_USAGE || $reportType == KalturaReportType::VAR_USAGE) { $objectIds = $this->validateObjectsAreAllowedPartners($objectIds); } $reportTotal = new KalturaReportTotal(); list($header, $data) = myReportsMgr::getTotal($this->getPartnerId(), $reportType, $reportInputFilter->toReportsInputFilter(), $objectIds); $reportTotal->fromReportTotal($header, $data); return $reportTotal; }