You are here

function FrxReportGenerator::get_report in Forena Reports 6.2

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

Accepts the name of a file

Returns a xml object of the file.

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 368
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;
  $this
    ->alter_parameters($report_name, $data);
  if ($report_name) {
    $r_text = $this->app
      ->load_report($report_name);
    if ($r_text) {
      $r = new FrxReport($r_text, $data);
    }
  }
  return $r;
}