You are here

class FrxXML in Forena Reports 7.3

Same name and namespace in other branches
  1. 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

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

}

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
FrxXML::render public function Overrides FrxRenderer::render