public function getContractImpressionsPerTimeExcelAction() { $initialized = $this->initialize(); if ($initialized !== true) { return $initialized; } if (!$this->is_admin) { die("bad request"); } $impressions = \_factory\ContractPublisherZoneHourlyImpressions::get_instance(); $stats = json_decode($this->getPerTime($impressions), TRUE); $impressions_headers = $impressions->getPerTimeHeader($this->is_admin); $dates = $this->getDatesForExcelReport(); $title = "Contract Impressions"; \util\ReportHelper::download_excel_file($stats['data'], $impressions_headers, $stats['totals'], $title, $dates); }
public function getOutgoingBidsPerTimeExcelAction() { $initialized = $this->initialize(); if ($initialized !== true) { return $initialized; } if (!$this->is_super_admin) { die("bad request"); } $outgoing_bid = \_factory\SellSidePartnerHourlyBids::get_instance(); $extra_params = array(); $stats = json_decode($this->getPerTime($outgoing_bid, $extra_params), TRUE); $outgoing_bid_headers = $outgoing_bid->getPerTimeHeader($this->is_super_admin); $dates = $this->getDatesForExcelReport(); $title = "Outgoing Bids"; \util\ReportHelper::download_excel_file($stats['data'], $outgoing_bid_headers, $stats['totals'], $title, $dates); }