* * You should have received a copy of the GNU General Public License along with CORAL. If not, see <http://www.gnu.org/licenses/>. * * * ************************************************************************************************************************* */ session_start(); //require 'minify.php'; //ob_start('minify_output'); ob_start(); include_once 'directory.php'; if (isset($_REQUEST['outputType'])) { $outputType = $_REQUEST['outputType']; } else { $outputType = 'web'; } $report = ReportFactory::makeReport($_REQUEST['reportID']); Parameter::setReport($report); //FormInputs::init() and ReportNotes::init(..) are called by Report constructor FormInputs::addHidden('outputType', $outputType); if (!isset($_REQUEST['reportID'])) { error_log("missing reportID; redirecting to index.php"); header("location: index.php"); exit; } if ($outputType === 'web' && isset($_REQUEST['startPage'])) { $startRow = $_REQUEST['startPage']; } else { $startRow = 1; } if ($report->titleID) { Parameter::$display = '<b>Title:</b> ' . $report->getUsageTitle($report->titleID) . '<br/>'; }
/** * @dataProvider reportIdProvider * @depends testParams */ public function testReportId($reportID) { $report = ReportFactory::makeReport($reportID); Parameter::setReport($report); foreach ($report->getParameters() as $parm) { $parm->process(); } $report->run(false, true); $report->run(true, true); }