You are here

public function ReportEditor::__construct in Forena Reports 7.5

Same name and namespace in other branches
  1. 8 src/Editor/ReportEditor.php \Drupal\forena\Editor\ReportEditor::__construct()

Construct the editor Enter description here ...

Parameters

unknown_type $report_name name of report to load:

File

src/Editor/ReportEditor.php, line 45
ReportEditor.inc Wrapper XML class for working with DOM object. It provides helper Enter description here ... @author metzlerd

Class

ReportEditor

Namespace

Drupal\forena\Editor

Code

public function __construct($report_name, $edit = TRUE) {
  $this->dom = new DOMDocument('1.0', 'UTF-8');
  $this->edit = $edit;
  $dom = $this->dom;
  $dom->formatOutput = TRUE;
  $dom->preserveWhiteSpace = TRUE;
  $this->frxReport = new Report();
  $this
    ->load($report_name, $edit);
}