You are here

public function FrxSection::generate in Forena Reports 8

Build document from the existing template.

Parameters

$xml:

$config:

Return value

string Report fragment.

Overrides TemplateInterface::generate

File

src/FrxPlugin/Template/FrxSection.php, line 66

Class

FrxSection

Namespace

Drupal\forena\Template

Code

public function generate() {
  $doc = new XML();
  $this
    ->pushData($this->configuration, '_template');
  $report = new Report($this->template, $doc);
  $report
    ->render();
  $text = $doc
    ->flush();
  $xml = new \SimpleXMLElement($text);
  return $this
    ->innerXML($xml);
}