function forena_report_object in Forena Reports 8
Same name and namespace in other branches
- 6.2 forena.common.inc \forena_report_object()
- 6 forena.common.inc \forena_report_object()
- 7.5 forena.common.inc \forena_report_object()
- 7 forena.common.inc \forena_report_object()
- 7.2 forena.common.inc \forena_report_object()
- 7.3 forena.common.inc \forena_report_object()
- 7.4 forena.common.inc \forena_report_object()
Object factory for forena report When called without a report name, it returns the last created report. This static caching mechanism is used for form functions that are called within a page load.
Parameters
string $report : Name of report.
array $data : Data for report
Return value
\Drupal\forena\FrxPlugin\Context\FrxReport
1 call to forena_report_object()
- forena_render_report in ./
forena.module - Render report with some data
File
- ./
forena.common.inc, line 87 - Common functions used throughout the project but loaded in this file to keep the module file lean.
Code
function forena_report_object($report = '', $data = array()) {
static $object = '';
if ($report) {
$object = new FrxReport($report, $data);
}
return $object;
}