You are here

public function FrxRptInclude::generate in Forena Reports 6.2

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

* * Enter description here ... *

Parameters

string $data_block: * @param SimpleXMLElement $xml * @param array $config

Overrides FrxTemplate::generate

File

templates/FrxRptInclude.inc, line 5

Class

FrxRptInclude

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