You are here

public function FrxRenderer::initReportNode in Forena Reports 7.3

Same name and namespace in other branches
  1. 6.2 FrxRenderer.inc \FrxRenderer::initReportNode()
  2. 7.2 FrxRenderer.inc \FrxRenderer::initReportNode()
  3. 7.4 renderers/FrxRenderer.inc \FrxRenderer::initReportNode()
1 call to FrxRenderer::initReportNode()
FrxRenderer::__construct in ./FrxRenderer.inc

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;
}