diff options
author | Arron Woods <aw@chartblocks.com> | 2015-05-15 15:19:46 +0100 |
---|---|---|
committer | Arron Woods <aw@chartblocks.com> | 2015-05-15 15:19:46 +0100 |
commit | 92364a9965c75b8703271b76e689ed726dd74c27 (patch) | |
tree | e2c2f8cc401d004a84eacedfb7e094fde3b64409 /library/SSRS/Object/ReportOutput.php | |
parent | 0994427a5b75bba964cd56142e7f5d34a79a2422 (diff) | |
download | php-ssrs-92364a9965c75b8703271b76e689ed726dd74c27.zip php-ssrs-92364a9965c75b8703271b76e689ed726dd74c27.tar.gz php-ssrs-92364a9965c75b8703271b76e689ed726dd74c27.tar.bz2 |
Form rendering with ZendFramework2
Diffstat (limited to 'library/SSRS/Object/ReportOutput.php')
-rwxr-xr-x | library/SSRS/Object/ReportOutput.php | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/library/SSRS/Object/ReportOutput.php b/library/SSRS/Object/ReportOutput.php index ac17fe4..70d7928 100755 --- a/library/SSRS/Object/ReportOutput.php +++ b/library/SSRS/Object/ReportOutput.php @@ -11,7 +11,9 @@ class ReportOutput extends ObjectAbstract { $this->verifyCachePath($localCachePath); $rootPath = rtrim($localCachePath, '/'); - foreach ($this->StreamIds->string as $streamId) { + + $streamIds = $this->getStreamIds(); + foreach ($streamIds as $streamId) { $path = $rootPath . '/' . $streamId; $stream = $report->renderStream($format, $streamId); @@ -22,6 +24,10 @@ class ReportOutput extends ObjectAbstract { return $this; } + public function getStreamIds() { + return is_array($this->StreamIds->string) ? $this->StreamIds->string : array($this->StreamIds->string); + } + public function download($filename) { header("Cache-control: max-age=3600, must-revalidate"); header("Pragma: public"); |