public function FrxSource::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/ FrxSource.php, line 15 - FrxSource Displays source of FrxAPI Report rather than rendering Look at the FrxRender class to see a full list of properties that can be used here.
Class
- FrxSource
- FRX Source Code Renderer
Namespace
Drupal\forena\FrxPlugin\RendererCode
public function render() {
$node = $this->reportNode;
$html = $node
->asXML();
$html = str_replace(' frx:renderer="FrxSource"', '', $html);
$html = str_replace('<html>', '<html xmlns:frx="urn:FrxReports">', $html);
$output = "<pre>\n" . htmlspecialchars($html) . "\n</pre>";
return $output;
}