You are here

public function FrxSVGDoc::output in Forena Reports 7.3

Same name and namespace in other branches
  1. 7.4 docformats/FrxSVGDoc.inc \FrxSVGDoc::output()

Output SVG content type headers.

Overrides FrxDocument::output

File

docformats/FrxSVGDoc.inc, line 37
FrxSVGDoc Embedded SVG Graph as it's own document. @author davidmetzler

Class

FrxSVGDoc
@file FrxSVGDoc Embedded SVG Graph as it's own document. @author davidmetzler

Code

public function output($output) {
  if ($this->content_type) {
    header('Content-Type: ' . $this->content_type);
    header('Cache-Control:');
    header('Pragma:');
    header('Cache-Control: must-revalidate');
    print $output;
    return TRUE;
  }
  else {
    return FALSE;
  }
}