function forena_report_object in Forena Reports 6.2
Same name and namespace in other branches
- 8 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
unknown_type $report_name:
2 calls to forena_report_object()
- forena_parameters_report in ./
forena.module - Calls forena_parameter_form in forena.common.inc
- forena_render_report in ./
forena.module - Render report with some data
File
- ./
forena.common.inc, line 109 - Common functions used throughout the project but loaded in this file to keep the module file lean.
Code
function forena_report_object($report = '', $data = '') {
static $object = '';
if ($report) {
$object = new FrxReport($report, $data);
}
return $object;
}