src/Jaspersoft/Service/ReportService.php
public function updateInputControlOrder($uri, array $controls)
    {
        $url = $this->service_url . '/reports' . $uri . '/inputControls';
        $body = array("inputControl" => array());
        foreach ($controls as $control) {
            if ($control instanceof InputControl) {
                $body['inputControl'][] = $control->jsonSerialize();
            }
        }
        $response = $this->service->prepAndSend($url, array(200), 'PUT', json_encode($body), true);

        $json_obj = json_decode($response);
        $result = array();
        foreach ($json_obj->inputControl as $control) {
            $result[] = InputControl::createFromJSON($control);
        }
        return $result;
    }
public function updateInputControlOrder($uri, array $controls)
    {
        $url = $this->service_url . '/reports' . $uri . '/inputControls';
        $body = array("inputControl" => array());
        foreach ($controls as $control) {
            if ($control instanceof InputControl) {
                $body['inputControl'][] = $control->jsonSerialize();
            }
        }
        $response = $this->service->prepAndSend($url, array(200), 'PUT', json_encode($body), true);

        $json_obj = json_decode($response);
        $result = array();
        foreach ($json_obj->inputControl as $control) {
            $result[] = InputControl::createFromJSON($control);
        }
        return $result;
    }
public function updateInputControlOrder ( $ uri , array $ controls ) { $ url = $ this -> service_url . '/reports' . $ uri . '/inputControls' ; $ body = array ( "inputControl" => array ( ) ) ; foreach ( $ controls as $ control ) { if ( $ control instanceof InputControl ) { $ body [ 'inputControl' ] [ ] = $ control -> jsonSerialize ( ) ; } } $ response = $ this -> service -> prepAndSend ( $ url , array ( 200 ) , 'PUT' , json_encode ( $ body ) , true ) ; $ json_obj = json_decode ( $ response ) ; $ result = array ( ) ; foreach ( $ json_obj -> inputControl as $ control ) { $ result [ ] = InputControl :: createFromJSON ( $ control ) ; } return $ result ; }
Update the order of a report's input control structure.

The second argument must only contain elements that have not been changed except for their order since being
retrieved from getReportInputControlStructure.

@param string $uri
@param array $controls A set of InputControl
@return array The new structure
Update the order of a report s input control structure .