diff options
author | arron.woods <arron.woods@deae1e92-32f9-c189-e222-5b9b5081a27a> | 2011-03-10 23:14:50 +0000 |
---|---|---|
committer | arron.woods <arron.woods@deae1e92-32f9-c189-e222-5b9b5081a27a> | 2011-03-10 23:14:50 +0000 |
commit | 634884044dd95345962db9e54764f37f6ba84853 (patch) | |
tree | e16f69cd22e0ac4a1759987e2f66566b4f9a08eb /library/SSRS/Object/ReportOutput.php | |
download | php-ssrs-634884044dd95345962db9e54764f37f6ba84853.zip php-ssrs-634884044dd95345962db9e54764f37f6ba84853.tar.gz php-ssrs-634884044dd95345962db9e54764f37f6ba84853.tar.bz2 |
v0.1 committed
Diffstat (limited to 'library/SSRS/Object/ReportOutput.php')
-rwxr-xr-x | library/SSRS/Object/ReportOutput.php | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/library/SSRS/Object/ReportOutput.php b/library/SSRS/Object/ReportOutput.php new file mode 100755 index 0000000..81f8598 --- /dev/null +++ b/library/SSRS/Object/ReportOutput.php @@ -0,0 +1,25 @@ +<?php + +/** + * Description of ExecutionParameters + * + * @author andrew + */ +class SSRS_Object_ReportOutput extends SSRS_Object_Abstract { + + public function download($filename){ + header("Cache-Control: public"); + header("Content-Description: File Transfer"); + header("Content-Disposition: attachment; filename=$filename"); + header("Content-Type: " . $this->mimeType); + header("Content-Transfer-Encoding: binary"); + header("Content-Length: " . strlen($this->Result)); + + die($this->Result); + } + + public function __toString(){ + return $this->Result; + } + +} |