public static function axDownloadCSV()
 {
     Wikia::log(__METHOD__, 'Depreciated?');
     $SponsorshipDashboard = new SponsorshipDashboard();
     if (isset($_GET['elementId']) && !empty($_GET['elementId']) && $SponsorshipDashboard->isAllowed()) {
         $report = new SponsorshipDashboardReport($_GET['elementId']);
         $report->loadReportParams();
         $dataFormatter = SponsorshipDashboardOutputCSV::newFromReport($report);
         echo $dataFormatter->getHTML();
         exit;
     } else {
         echo wfMsg('sponsorship-dashboard-not-allowed');
     }
 }
 protected function HTMLViewReport($id)
 {
     $wgOut = F::app()->getGlobal('wgOut');
     $this->HTMLAdminHeader('ViewReports');
     $report = new SponsorshipDashboardReport($id);
     $report->setId($id);
     $report->loadReportParams();
     $report->loadSources();
     $chart = SponsorshipDashboardOutputChart::newFromReport($report);
     $table = SponsorshipDashboardOutputTable::newFromReport($report);
     $wgOut->addHTML($chart->getHTML());
     $wgOut->addHTML($table->getHTML());
 }