You are here

FrxSource.inc in Forena Reports 7.3

Same filename and directory in other branches
  1. 7.4 renderers/FrxSource.inc

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.

File

renderers/FrxSource.inc
View source
<?php

/**
 * @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.
 */
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;
  }

}

Classes

Namesort descending Description
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.