You are here

class FrxSource in Forena Reports 7.3

Same name and namespace in other branches
  1. 6.2 plugins/FrxSource.inc \FrxSource
  2. 7.2 plugins/FrxSource.inc \FrxSource
  3. 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

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;
  }

}

Members

Namesort descending Modifiers Type Description Overrides
FrxRenderer::$dataProvider public property
FrxRenderer::$format public property
FrxRenderer::$frxAttributes public property
FrxRenderer::$frxReport public property
FrxRenderer::$htmlAttributes public property
FrxRenderer::$id public property
FrxRenderer::$name public property
FrxRenderer::$reportDocDomNode public property
FrxRenderer::$reportDocNode public property
FrxRenderer::$teng public property
FrxRenderer::addAttributes public static function
FrxRenderer::drupalRender public function Render a drupal form in a forena template
FrxRenderer::initReportNode public function
FrxRenderer::innerXML public function Return the inside xml of the current node
FrxRenderer::mergedAttributes public function Standard php array containing merged attributes Enter description here ...
FrxRenderer::replacedAttributes public function
FrxRenderer::replaceTokens public function
FrxRenderer::__construct public function 1
FrxSource::render public function Overrides FrxRenderer::render