public function FrxRenderer::initReportNode in Forena Reports 7.3
Same name and namespace in other branches
- 6.2 FrxRenderer.inc \FrxRenderer::initReportNode()
- 7.2 FrxRenderer.inc \FrxRenderer::initReportNode()
- 7.4 renderers/FrxRenderer.inc \FrxRenderer::initReportNode()
1 call to FrxRenderer::initReportNode()
File
- ./
FrxRenderer.inc, line 27 - FrxRenderer.inc Base class for Frx custom renderers @author davidmetzler
Class
- FrxRenderer
- @file FrxRenderer.inc Base class for Frx custom renderers @author davidmetzler
Code
public function initReportNode($domNode, $frxReport, $format = 'web') {
$this->format = $format;
$this->reportDocDomNode = $domNode;
$this->dataProvider = Frx::Data();
$this->reportDocNode = simplexml_import_dom($domNode);
$node = $this->reportDocNode;
$this->name = $node
->getName();
$this->htmlAttributes = $node
->attributes();
$this->id = (string) $this->htmlAttributes['id'];
$this->frxAttributes = $node
->attributes(FRX_NS);
$this->teng = $frxReport->teng;
$this->frxReport = $frxReport;
}