You are here

private function XML::_build_opening_root_tag_contents in Forena Reports 8

1 call to XML::_build_opening_root_tag_contents()
XML::header in src/FrxPlugin/Document/XML.php
Default implementation to put in content type based headers.

File

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

Class

XML
XML Document

Namespace

Drupal\forena\FrxPlugin\Document

Code

private function _build_opening_root_tag_contents() {
  $tag_contents = $this->root_tag;
  if (isset($this->root_attributes) && is_array($this->root_attributes)) {
    foreach ($this->root_attributes as $attr_key => $attr_val) {
      if (!empty($attr_key) && (string) $attr_val !== '') {
        $attr_val = addslashes($attr_val);
        $tag_contents .= " " . $attr_key . "=" . "'{$attr_val}'";
      }
    }
  }
  return $tag_contents;
}