diff options
author | Arron Woods <aw@chartblocks.com> | 2015-05-20 16:06:53 +0100 |
---|---|---|
committer | Arron Woods <aw@chartblocks.com> | 2015-05-20 16:06:53 +0100 |
commit | 35c2d9628cc4f3faacaf85403606b727b0466cc0 (patch) | |
tree | 9a16f39539403ad27be4346094b7b5849df1b64c /library/SSRS/Report.php | |
parent | 482ce747db34349ba131b9b01bc77b18ab6168c9 (diff) | |
download | php-ssrs-35c2d9628cc4f3faacaf85403606b727b0466cc0.zip php-ssrs-35c2d9628cc4f3faacaf85403606b727b0466cc0.tar.gz php-ssrs-35c2d9628cc4f3faacaf85403606b727b0466cc0.tar.bz2 |
ReplacementRoot hack and resource rendering
Diffstat (limited to 'library/SSRS/Report.php')
-rwxr-xr-x | library/SSRS/Report.php | 13 |
1 files changed, 10 insertions, 3 deletions
diff --git a/library/SSRS/Report.php b/library/SSRS/Report.php index 2333d3a..71d786e 100755 --- a/library/SSRS/Report.php +++ b/library/SSRS/Report.php @@ -65,6 +65,7 @@ class Report { $defaults = array( 'cache_wsdl_path' => null, 'curl_options' => array(), + 'hijackActionUrls' => false ); $this->options = array_merge($defaults, $options); @@ -340,16 +341,22 @@ class Report { */ public function render($format, $deviceInfo = array(), $PaginationMode = 'Estimate') { $this->checkSessionId(); - $deviceInfo = array('DeviceInfo' => $deviceInfo); + + $deviceInfoDefaults = array(); + if ($this->options['hijackActionUrls']) { + $deviceInfoDefaults['ReplacementRoot'] = '//php-ssrs//'; + } + + $deviceInfoTree = array('DeviceInfo' => array_merge($deviceInfoDefaults, $deviceInfo)); $renderParams = array( 'Format' => $format, - 'DeviceInfo' => $this->renderDeviceInfo($deviceInfo), + 'DeviceInfo' => $this->renderDeviceInfo($deviceInfoTree), 'PaginationMode' => $PaginationMode ); $result = $this->getSoapExecution()->Render2($renderParams); - return new ReportOutput($result); + return new ReportOutput($result, $this->getExecutionInfo()); } /** |