class FrxXML in Forena Reports 7.3
Same name and namespace in other branches
- 7.4 renderers/FrxXML.inc \FrxXML
@file FrxXML Just render the XML source data. Look at the FrxRender class to see a full list of properties that can be used here.
Hierarchy
- class \FrxRenderer
- class \FrxXML
Expanded class hierarchy of FrxXML
1 string reference to 'FrxXML'
- forena_forena_controls in ./
forena.module - Self register controls with forena.
File
- renderers/
FrxXML.inc, line 8 - FrxXML Just render the XML source data. Look at the FrxRender class to see a full list of properties that can be used here.
View source
class FrxXML extends FrxRenderer {
public function render() {
$output = '';
$node = $this->reportDocNode;
$xml = FrxData::instance()
->currentContext();
if ($xml && is_callable(array(
$xml,
'asXML',
))) {
$dom = dom_import_simplexml($xml);
$dom->ownerDocument->formatOutput = TRUE;
$dom->ownerDocument->preserveWhiteSpace = TRUE;
$output = $dom->ownerDocument
->saveXML($dom->ownerDocument->documentElement);
}
if ($this->format != 'xml') {
$output = '<pre>' . htmlspecialchars($output) . '</pre>';
}
return $output;
}
}