public function ReportEditor::__construct in Forena Reports 8
Same name and namespace in other branches
- 7.5 src/Editor/ReportEditor.php \Drupal\forena\Editor\ReportEditor::__construct()
Construct the editor
Parameters
string $report_name name of report to load:
File
- src/
Editor/ ReportEditor.php, line 48 - ReportEditor.inc Wrapper XML class for working with DOM object. It provides helper Enter description here ... @author metzlerd
Class
Namespace
Drupal\forena\EditorCode
public function __construct($report_name) {
$this->dom = new DOMDocument('1.0', 'UTF-8');
$this->edit = TRUE;
$dom = $this->dom;
$dom->formatOutput = TRUE;
$dom->preserveWhiteSpace = TRUE;
$this->frxReport = new Report();
$this
->load($report_name, $this->edit);
}