You are here

public function FrxSVGGraph::__construct in Forena Reports 8

Same name in this branch
  1. 8 src/FrxPlugin/Template/FrxSVGGraph.php \Drupal\forena\Template\FrxSVGGraph::__construct()
  2. 8 src/FrxPlugin/Renderer/FrxSVGGraph.php \Drupal\forena\FrxPlugin\Renderer\FrxSVGGraph::__construct()

Overrides RendererBase::__construct

File

src/FrxPlugin/Renderer/FrxSVGGraph.php, line 42
FrxSVGGraph php SVG Graph generator

Class

FrxSVGGraph
SVG Graphing Renderer

Namespace

Drupal\forena\FrxPlugin\Renderer

Code

public function __construct(Report $report, DocumentInterface $doc = NULL) {
  parent::__construct($report, $doc);
  $library = AppService::instance()
    ->findLibrary('SVGGraph');
  if ($library) {
    require_once $library;
  }
}