class FrxSource in Forena Reports 7.3
Same name and namespace in other branches
- 6.2 plugins/FrxSource.inc \FrxSource
- 7.2 plugins/FrxSource.inc \FrxSource
- 7.4 renderers/FrxSource.inc \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.
Hierarchy
- class \FrxRenderer
- class \FrxSource
Expanded class hierarchy of FrxSource
1 string reference to 'FrxSource'
- forena_forena_controls in ./
forena.module - Self register controls with forena.
File
- renderers/
FrxSource.inc, line 8 - 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.
View source
class FrxSource extends FrxRenderer {
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;
}
}