You are here

public function XML::__construct in Forena Reports 8

File

src/FrxPlugin/Document/XML.php, line 28
HTML Straight XML document with no wrapping theme. @author davidmetzler

Class

XML
XML Document

Namespace

Drupal\forena\FrxPlugin\Document

Code

public function __construct() {
  $this->allowDirectOutput = FALSE;
  $this->content_type = 'application/xml';
  $skin = $this
    ->getDataContext('skin');
  if (isset($skin['XML']['rootElementName'])) {
    $this->root_tag = $skin['XML']['rootElementName'];
    if ($this->root_tag == 'none') {
      $this->root_tag = '';
    }
  }
  if (isset($skin['XML']['rootElementAttributes'])) {
    if (is_array($skin['XML']['rootElementAttributes'])) {
      $this->root_attributes = $skin['XML']['rootElementAttributes'];
    }
  }
}