You are here

public function XML::header in Forena Reports 8

Default implementation to put in content type based headers.

Overrides DocumentBase::header

File

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

Class

XML
XML Document

Namespace

Drupal\forena\FrxPlugin\Document

Code

public function header() {
  parent::header();
  $text = '<?xml version="1.0"?>' . "\n";
  $this
    ->write($text);
  $opening_tag = $this
    ->_build_opening_root_tag_contents();
  if ($this->root_tag) {
    $opening_tag = "<{$opening_tag}>\n";
    $this
      ->write($opening_tag);
  }
}