public function FrxTemplate::render in Forena Reports 8
Default Render action, which simply does normal forena rendering. You can use renderDomNode at any time to generate the default forena rendering methods.
Return value
string text from the renderer.
Overrides RendererBase::render
File
- src/
FrxPlugin/ Renderer/ FrxTemplate.php, line 20
Class
- FrxTemplate
- FrxAPI Template renderer
Namespace
Drupal\forena\FrxPlugin\RendererCode
public function render() {
$output = '';
$template = $this
->innerXML($this->reportNode);
// Update the template
if ($template) {
$output = $this->report
->replace($template);
}
//remove CDATA stuff
$output = str_replace('<![CDATA[', '', $output);
$output = str_replace(']]>', '', $output);
//token replace items in clause body
$output = $this->report
->replace($output);
return $output;
}