function FrxReportGenerator::get_report in Forena Reports 7.3
Same name and namespace in other branches
- 6.2 FrxReportGenerator.inc \FrxReportGenerator::get_report()
- 7.2 FrxReportGenerator.inc \FrxReportGenerator::get_report()
- 7.4 FrxReportGenerator.inc \FrxReportGenerator::get_report()
Accepts the name of a file
Return value
1 call to FrxReportGenerator::get_report()
- FrxReportGenerator::report in ./
FrxReportGenerator.inc - Load and render a report based on a drupal path. In this function the arglist is used to get the full path to the report.
File
- ./
FrxReportGenerator.inc, line 96 - Common functions used throughout the project but loaded in this file to keep the module file lean.
Class
Code
function get_report($report_name, $data = array()) {
$r = NULL;
$this
->alter_parameters($report_name, $data);
if ($report_name) {
$r_text = $this->app
->load_report($report_name);
if ($r_text) {
$r = new FrxReport($r_text, $data);
}
}
return $r;
}