public function FrxXMLDoc::__construct in Forena Reports 7.4
Same name and namespace in other branches
- 7.3 docformats/FrxXMLDoc.inc \FrxXMLDoc::__construct()
File
- docformats/
FrxXMLDoc.inc, line 12 - FrxHtmlDoc Straight XML document with no wrapping theme. @author davidmetzler
Class
- FrxXMLDoc
- @file FrxHtmlDoc Straight XML document with no wrapping theme. @author davidmetzler
Code
public function __construct() {
$this->allowDirectOutput = TRUE;
$this->content_type = 'application/xml';
$skin = Frx::Data()
->getContext('skin');
if (isset($skin['FrxXMLDoc']['rootElementName'])) {
$this->root_tag = $skin['FrxXMLDoc']['rootElementName'];
if ($this->root_tag == 'none') {
$this->root_tag = '';
}
}
if (isset($skin['FrxXMLDoc']['rootElementAttributes'])) {
if (is_array($skin['FrxXMLDoc']['rootElementAttributes'])) {
$this->root_attributes = $skin['FrxXMLDoc']['rootElementAttributes'];
}
}
}