summaryrefslogtreecommitdiffstats
path: root/library/SSRS/Object/ReportOutput.php
diff options
context:
space:
mode:
authorArron Woods <aw@chartblocks.com>2015-05-15 15:19:46 +0100
committerArron Woods <aw@chartblocks.com>2015-05-15 15:19:46 +0100
commit92364a9965c75b8703271b76e689ed726dd74c27 (patch)
treee2c2f8cc401d004a84eacedfb7e094fde3b64409 /library/SSRS/Object/ReportOutput.php
parent0994427a5b75bba964cd56142e7f5d34a79a2422 (diff)
downloadphp-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-xlibrary/SSRS/Object/ReportOutput.php8
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");