You are here

public function RendererBase::generate in Forena Reports 7.5

Generate the template from the configuration.

Parameters

string $data_block:

SimpleXMLElement $xml:

array $config:

8 methods override RendererBase::generate()
FrxCrosstab::generate in src/Renderer/FrxCrosstab.php
Generate the template from the configuration.
FrxEmailMerge::generate in src/Renderer/FrxEmailMerge.php
Generate the template from the configuration.
FrxFieldTable::generate in src/Renderer/FrxFieldTable.php
Generate the template from the configuration.
FrxInclude::generate in src/Renderer/FrxInclude.php
Implement template generator.
FrxMergeDocument::generate in src/Renderer/FrxMergeDocument.php
Generate the template from the configuration.

... See full list

File

src/Renderer/RendererBase.php, line 795
FrxRenderer.php Base class for Frx custom Renderer @author davidmetzler

Class

RendererBase

Namespace

Drupal\forena\Renderer

Code

public function generate($xml, &$config) {
  if (!@$config['foreach']) {
    $config['foreach'] = '*';
  }
  $columns = $this
    ->columns($xml);
  $text = '';
  if ($columns) {
    foreach ($columns as $col => $label) {
      $text .= ' {' . $col . '}';
    }
  }
  $this
    ->blockDiv($config, $text);
}