Example #1
0
 /**
  * Retrives report parameter properties for a specified report.
  *         this method can also be used to validate parameter values against
  *         parameters for a specified report
  * @param string $Report The full path name of the report.
  * @param string $HistoryID The ID of the report history snapshot.
  * @param bool $ForRendering
  * @param ParameterValue[] $Values The parameter values that can be
  *        validated against the parameters of a report that is managed
  *        by the report server
  * @param DataSourceCredentails[] $Credentials The data source credentials
  *        that can be used to validate query parameters
  * @return ReportParameter[] An array of ReportParameter objects that lists
  *        the prameters for the report
  */
 public function GetReportParameters($Report, $HistoryID = null, $ForRendering = false, $Values = null, $Credentials = null)
 {
     $parameters = array('Report' => $Report, 'HistoryID' => $HistoryID, 'ForRendering' => $ForRendering, 'Values' => $Values, 'Credentials' => $Credentials);
     try {
         $stdObject = $this->_soapHandle_Mgt->GetReportParameters($parameters);
         $reportParameterCollection = SSRSTypeFactory::CreateSSRSObject('ReportParameterCollection', $stdObject);
         return $reportParameterCollection->Parameters;
     } catch (SoapFault $soapFault) {
         self::ThrowReportException($soapFault);
     }
 }