diff options
Diffstat (limited to 'library')
-rwxr-xr-x | library/SSRS/Object/ReportParameter.php | 32 | ||||
-rwxr-xr-x | library/SSRS/Report.php | 21 |
2 files changed, 53 insertions, 0 deletions
diff --git a/library/SSRS/Object/ReportParameter.php b/library/SSRS/Object/ReportParameter.php index 77dbc3b..7d592f5 100755 --- a/library/SSRS/Object/ReportParameter.php +++ b/library/SSRS/Object/ReportParameter.php @@ -15,6 +15,10 @@ class SSRS_Object_ReportParameter extends SSRS_Object_Abstract { public $name; public $value; + /** + * + * @return array + */ public function getDefaultValue() { $defaults = array(); @@ -34,6 +38,10 @@ class SSRS_Object_ReportParameter extends SSRS_Object_Abstract { return $defaults; } + /** + * + * @return \SSRS_Object_ReportParameter_ValidValue[] + */ public function getValidValues() { $data = array(); @@ -60,27 +68,51 @@ class SSRS_Object_ReportParameter extends SSRS_Object_Abstract { return $data; } + /** + * + * @return bool + */ public function hasDependencies() { return (isset($this->data['Dependencies']->Dependency) && !empty($this->data['Dependencies']->Dependency)); } + /** + * + * @return bool + */ public function getDependencies() { return (array) $this->data['Dependencies']->Dependency; } + /** + * + * @return bool + */ public function hasOutstandingDependencies() { return ($this->getState() == 'HasOutstandingDependencies'); } + /** + * + * @return bool + */ public function getState() { return key_exists('State', $this->data) ? $this->data['State'] : null; } + /** + * + * @return bool + */ public function isMultiValue() { return !empty($this->data['MultiValue']); } + /** + * + * @return bool + */ public function isSelect() { return isset($this->data['ValidValues']); } diff --git a/library/SSRS/Report.php b/library/SSRS/Report.php index 6b05ed4..4c6a8f9 100755 --- a/library/SSRS/Report.php +++ b/library/SSRS/Report.php @@ -354,6 +354,27 @@ class SSRS_Report { } /** + * + * @param string $format + * @param string $streamId + * @param array $deviceInfo + * @return \SSRS_Object_RenderStream + */ + public function getRenderResource($format, $deviceInfo = array()) { + $this->checkSessionId(); + + $deviceInfo = array('DeviceInfo' => $deviceInfo); + + $renderParams = array( + 'Format' => (string) $format, + 'DeviceInfo' => $this->renderDeviceInfo($deviceInfo), + ); + + $result = $this->getSoapExecution()->GetRenderResource($renderParams); + return new SSRS_Object_RenderStream($result); + } + + /** * Checks if there is a valid Session ID set. * */ |