public function FrxSource::render in Forena Reports 7.3
Same name and namespace in other branches
- 6.2 plugins/FrxSource.inc \FrxSource::render()
- 7.2 plugins/FrxSource.inc \FrxSource::render()
- 7.4 renderers/FrxSource.inc \FrxSource::render()
Overrides FrxRenderer::render
File
- renderers/
FrxSource.inc, line 9 - FrxSource Displays source of Frx Report rather than rendering Look at the FrxRender class to see a full list of properties that can be used here.
Class
- FrxSource
- @file FrxSource Displays source of Frx Report rather than rendering Look at the FrxRender class to see a full list of properties that can be used here.
Code
public function render() {
$node = $this->reportDocNode;
$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;
}