CMS  Version 3.9
generate_report.inc
Go to the documentation of this file.
1 <?php
2 
3 Fakoli::using("report");
4 
5 $report_id = checkIdentifier($_REQUEST["report_id"]);
6 $target = checkIdentifier($_GET["target"]);
7 
8 $mode = ($method == "POST") ? "post" : "";
9 
10 // var_dump($_REQUEST);
11 // echo "<br><br>";
12 
13 if ($report_id)
14 {
16 }
17 else if ($target)
18 {
20  $report->fromRequest();
21 }
22 else
23 {
24  Fakoli::end("Missing Report");
25 }
26 
27 if ($report->title)
28 {
29  $page->page_title = $report->title;
30 }
31 
32 $report->generateReport(true);
33 
34 ?>
$page
Definition: help.inc:39
static createManager($target)
static using()
Import the datamodels, views and manifest for the specified component(s).
Definition: core.inc:116
static end($message="")
Use this method to terminate execution of a script instead of using the php keywords exit() or die().
Definition: core.inc:1149
static load($report_id, $mode="")
$method
Pull out a simple reference to the request method.
Definition: core.inc:1573
$report_id
$target
$report
Definition: save_report.inc:38