You are here

public function FrxInclude::generate in Forena Reports 7.4

Implement template generator.

Overrides FrxRenderer::generate

See also

FrxRenderer::generate()

File

renderers/FrxInclude.inc, line 111
FrxInclude Include a reference to another report as an asset. @author davidmetzler

Class

FrxInclude
@file FrxInclude Include a reference to another report as an asset. @author davidmetzler

Code

public function generate($xml, &$config) {
  $src = $this
    ->extract('src', $key);
  $div = $this
    ->blockDiv($config);
  $frx = array(
    'src' => $src,
    'renderer' => 'FrxInclude',
  );
  $this
    ->addNode($div, 4, 'div', NULL, $config, $frx);
}