public function FrxXMLDoc::__construct in Forena Reports 7.3
Same name and namespace in other branches
- 7.4 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->content_type = 'application/xml';
$skin = Frx::Data()
->getContext('skin');
if (isset($skin['FrxXMLDoc']['rootElementName'])) {
$this->root_tag = $skin['FrxXMLDoc']['rootElementName'];
}
if (isset($skin['FrxXMLDoc']['rootElementAttributes'])) {
if (is_array($skin['FrxXMLDoc']['rootElementAttributes'])) {
$this->root_attributes = $skin['FrxXMLDoc']['rootElementAttributes'];
}
}
}