You are here

function FrxHostApplication::load_report in Forena Reports 6.2

Same name and namespace in other branches
  1. 7.2 FrxHostApplication.inc \FrxHostApplication::load_report()

* Accepts the name of a file * * Returns a xml object of the file. *

1 method overrides FrxHostApplication::load_report()
FrxDrupalApplication::load_report in ./FrxDrupalApplication.inc
Accepts the name of a file

File

./FrxHostApplication.inc, line 148

Class

FrxHostApplication

Code

function load_report($report_name) {
  $r = null;
  if ($report_name) {
    $report_path = $this
      ->configuration('report_repos');
    $filename = 'reports/' . $report_name . '.frx';
    if (file_exists($filename)) {
      $r_text = file_get_contents($filename);
    }
    return $r_text;
  }
}