public function FrxSource::render in Forena Reports 7.5
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 RendererBase::render
File
- src/
Renderer/ FrxSource.php, line 10 - 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
Namespace
Drupal\forena\RendererCode
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;
}