public function FrxRenderer::generate in Forena Reports 7.4
Generate the template from the configuration.
Parameters
string $data_block:
SimpleXMLElement $xml:
array $config:
8 methods override FrxRenderer::generate()
- FrxCrosstab::generate in renderers/
FrxCrosstab.inc - Generate the template from the configuration.
- FrxEmailMerge::generate in renderers/
FrxEmailMerge.inc - Generate the template from the configuration.
- FrxFieldTable::generate in renderers/
FrxFieldTable.inc - Generate the template from the configuration.
- FrxInclude::generate in renderers/
FrxInclude.inc - Implement template generator.
- FrxMergeDocument::generate in renderers/
FrxMergeDocument.inc - Generate the template from the configuration.
File
- renderers/
FrxRenderer.inc, line 786 - FrxRenderer.inc Base class for Frx custom renderers @author davidmetzler
Class
- FrxRenderer
- @file FrxRenderer.inc Base class for Frx custom renderers @author davidmetzler
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);
}