public function FrxDocument::header in Forena Reports 7.4
5 methods override FrxDocument::header()
- FrxDocRaptor::header in docformats/
FrxDocRaptor.inc - FrxMPDF::header in docformats/
FrxMPDF.inc - FrxPrincePDF::header in docformats/
FrxPrincePDF.inc - FrxSVGDoc::header in docformats/
FrxSVGDoc.inc - FrxXMLDoc::header in docformats/
FrxXMLDoc.inc
File
- ./
FrxDocument.inc, line 14 - FrxDocument.inc Given a report, render the appropriate output given the document format. @author davidmetzler
Class
- FrxDocument
- @file FrxDocument.inc Given a report, render the appropriate output given the document format. @author davidmetzler
Code
public function header($r, $print = TRUE) {
$r->html = '';
if ($this->content_type) {
header('Content-Type: ' . $this->content_type . ' ;charset=' . $this->charset);
header('Cache-Control:');
header('Pragma:');
$file_name = basename($_GET['q']);
header('Content-Disposition: attachment; filename="' . $file_name . '"');
header('Cache-Control: must-revalidate');
}
$this->print = $print;
}