コード例 #1
0
 /**
  * Returns a set of InputControl items defining the values of InputControls
  *
  * @deprecated Use getInputControlValues instead
  * @param string $uri
  * @return array
  */
 public function getReportInputControls($uri)
 {
     $url = $this->service_url . '/reports' . $uri . '/inputControls/values';
     $data = $this->service->prepAndSend($url, array(200, 204), 'GET', null, true, 'application/json', 'application/json');
     $result = array();
     $json_obj = json_decode($data);
     // JRS returns an OK status code with an error message string as the body... so if we cannot parse it into an
     // array, we know that there was an error
     if (empty($json_obj)) {
         return $result;
     }
     $result = \Jaspersoft\Dto\Report\InputControl::createFromJSON($data);
     return $result;
 }
コード例 #2
0
 /**
  * This function will request the possible values and data behind all the input controls of a report.
  *
  * @param string $uri
  * @return array
  */
 public function getReportInputControls($uri)
 {
     $url = $this->restUrl2 . '/reports' . $uri . '/inputControls/values';
     $data = $this->service->prepAndSend($url, array(200), 'GET', null, true, 'application/json', 'application/json');
     return InputControl::createFromJSON($data);
 }