From def3e414e37a22e3fc09a0a6b31d609ee6878df9 Mon Sep 17 00:00:00 2001 From: "jaysmith6811@gmail.com" Date: Fri, 30 Nov 2012 15:43:47 +0000 Subject: added sort and toggle --- library/SSRS/Object/ReportParameter/ValidValue.php | 4 ++++ library/SSRS/Report.php | 21 +++++++++++++++++++++ 2 files changed, 25 insertions(+) diff --git a/library/SSRS/Object/ReportParameter/ValidValue.php b/library/SSRS/Object/ReportParameter/ValidValue.php index adb11ca..b75b07e 100644 --- a/library/SSRS/Object/ReportParameter/ValidValue.php +++ b/library/SSRS/Object/ReportParameter/ValidValue.php @@ -13,4 +13,8 @@ class SSRS_Object_ReportParameter_ValidValue { $this->Label = $label; } + public function __toString() { + return $this->Value; + } + } \ No newline at end of file diff --git a/library/SSRS/Report.php b/library/SSRS/Report.php index e517880..6b05ed4 100755 --- a/library/SSRS/Report.php +++ b/library/SSRS/Report.php @@ -243,6 +243,27 @@ class SSRS_Report { } /** + * + * @param type $toggleId + * @return type + */ + public function toggleItem($toggleId) { + $params = array( + 'ToggleID' => $toggleId + ); + return $this->getSoapExecution()->ToggleItem($params); + } + + public function sort($sortId, $direction, $clear) { + $params = array( + 'SortItem' => $sortId, + 'Direction' => $direction, + 'Clear' => $clear, + ); + return $this->getSoapExecution()->Sort($params); + } + + /** * Loads all details relating to a report including all available search parameters * * @param string $Report -- cgit v1.1