You are here

function FrxReportGenerator::get_report in Forena Reports 7.4

Same name and namespace in other branches
  1. 6.2 FrxReportGenerator.inc \FrxReportGenerator::get_report()
  2. 7.2 FrxReportGenerator.inc \FrxReportGenerator::get_report()
  3. 7.3 FrxReportGenerator.inc \FrxReportGenerator::get_report()

Accepts the name of a file

Return value

FrxReport

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

FrxReportGenerator

Code

function get_report($report_name, $data = array()) {
  $r = NULL;
  if ($report_name) {
    $r_text = $this->app
      ->load_report($report_name);
    if ($r_text) {
      $r = new FrxReport($r_text, $data);
    }
  }
  return $r;
}