function forena_render_report in Forena Reports 8
Same name and namespace in other branches
- 6.2 forena.module \forena_render_report()
- 6 forena.module \forena_render_report()
- 7 forena.module \forena_render_report()
- 7.2 forena.module \forena_render_report()
- 7.3 forena.module \forena_render_report()
- 7.4 forena.module \forena_render_report()
Render report with some data
Parameters
string $report:
string $format:
mixed $data:
Return value
unknown
File
- ./
forena.module, line 281
Code
function forena_render_report($report, $format = '', $data = '', $options = array(), $print = TRUE) {
require_once 'forena.common.inc';
$o = forena_report_object($report, $data);
$output = $o
->render($format, $print);
//If a format was requested render a custom non-drupal document
if ($format && $format != 'web') {
$output = FrxReportGenerator::instance()
->generate_doc($format, $output, $options, $print);
}
return $output;
}