You are here

function forena_render_report in Forena Reports 8

Same name and namespace in other branches
  1. 6.2 forena.module \forena_render_report()
  2. 6 forena.module \forena_render_report()
  3. 7 forena.module \forena_render_report()
  4. 7.2 forena.module \forena_render_report()
  5. 7.3 forena.module \forena_render_report()
  6. 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;
}