public function FrxSource::render in Forena Reports 7.4
Same name and namespace in other branches
- 6.2 plugins/FrxSource.inc \FrxSource::render()
- 7.2 plugins/FrxSource.inc \FrxSource::render()
- 7.3 renderers/FrxSource.inc \FrxSource::render()
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
Ambigous <string, unknown, unknown_type, text, mixed>
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;
}