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()); }