You are here

public function FrxFile::__construct in Forena Reports 7.3

Same name and namespace in other branches
  1. 7.4 FrxFile.inc \FrxFile::__construct()

Constructor Sets the initial reort directory

File

./FrxFile.inc, line 14
FrxFile.inc File toolbox for manipulating files contained tn the report directory.

Class

FrxFile
@file FrxFile.inc File toolbox for manipulating files contained tn the report directory.

Code

public function __construct() {
  $report_path = variable_get('forena_report_repos', '');
  if (!$report_path) {
    $report_path = variable_get('file_' . file_default_scheme() . '_path', conf_path() . '/files/reports');
  }
  $this->dir = rtrim($report_path, '/');
}