You are here

public function FrxRptInclude::generate in Forena Reports 7.3

Same name and namespace in other branches
  1. 6.2 templates/FrxRptInclude.inc \FrxRptInclude::generate()
  2. 7.2 templates/FrxRptInclude.inc \FrxRptInclude::generate()

Enter description here ...

Parameters

string $data_block:

SimpleXMLElement $xml:

array $config:

Overrides FrxTemplate::generate

File

templates/FrxRptInclude.inc, line 11
FrxRptInclude.inc Generate an include of another report. @author davidmetzler

Class

FrxRptInclude
@file FrxRptInclude.inc Generate an include of another report. @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);
}