public function FrxXMLDoc::header in Forena Reports 7.4
Overrides FrxDocument::header
File
- docformats/
FrxXMLDoc.inc, line 27 - 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 header($r, $print = TRUE) {
if ($print) {
header('Content-Type: ' . $this->content_type);
header('Cache-Control:');
header('Pragma:');
header('Cache-Control: must-revalidate');
}
$r->html = '<?xml version="1.0"?>' . "\n";
$opening_tag = $this
->_build_opening_root_tag_contents();
if ($this->root_tag) {
$r->html .= "<{$opening_tag}>";
}
}