public static function process_attempt_parameters() {
        return new external_function_parameters (
            array(
                'attemptid' => new external_value(PARAM_INT, 'attempt id'),
                'data' => new external_multiple_structure(
                    new external_single_structure(
                        array(
                            'name' => new external_value(PARAM_RAW, 'data name'),
                            'value' => new external_value(PARAM_RAW, 'data value'),
                        )
                    ),
                    'the data to be saved', VALUE_DEFAULT, array()
                ),
                'finishattempt' => new external_value(PARAM_BOOL, 'whether to finish or not the attempt', VALUE_DEFAULT, false),
                'timeup' => new external_value(PARAM_BOOL, 'whether the WS was called by a timer when the time is up',
                                                VALUE_DEFAULT, false),
                'preflightdata' => new external_multiple_structure(
                    new external_single_structure(
                        array(
                            'name' => new external_value(PARAM_ALPHANUMEXT, 'data name'),
                            'value' => new external_value(PARAM_RAW, 'data value'),
                        )
                    ), 'Preflight required data (like passwords)', VALUE_DEFAULT, array()
                )
            )
        );
    }
public static function process_attempt_parameters() {
        return new external_function_parameters (
            array(
                'attemptid' => new external_value(PARAM_INT, 'attempt id'),
                'data' => new external_multiple_structure(
                    new external_single_structure(
                        array(
                            'name' => new external_value(PARAM_RAW, 'data name'),
                            'value' => new external_value(PARAM_RAW, 'data value'),
                        )
                    ),
                    'the data to be saved', VALUE_DEFAULT, array()
                ),
                'finishattempt' => new external_value(PARAM_BOOL, 'whether to finish or not the attempt', VALUE_DEFAULT, false),
                'timeup' => new external_value(PARAM_BOOL, 'whether the WS was called by a timer when the time is up',
                                                VALUE_DEFAULT, false),
                'preflightdata' => new external_multiple_structure(
                    new external_single_structure(
                        array(
                            'name' => new external_value(PARAM_ALPHANUMEXT, 'data name'),
                            'value' => new external_value(PARAM_RAW, 'data value'),
                        )
                    ), 'Preflight required data (like passwords)', VALUE_DEFAULT, array()
                )
            )
        );
    }
public static function process_attempt_parameters ( ) { return new external_function_parameters ( array ( 'attemptid' => new external_value ( PARAM_INT , 'attempt id' ) , 'data' => new external_multiple_structure ( new external_single_structure ( array ( 'name' => new external_value ( PARAM_RAW , 'data name' ) , 'value' => new external_value ( PARAM_RAW , 'data value' ) , ) ) , 'the data to be saved' , VALUE_DEFAULT , array ( ) ) , 'finishattempt' => new external_value ( PARAM_BOOL , 'whether to finish or not the attempt' , VALUE_DEFAULT , false ) , 'timeup' => new external_value ( PARAM_BOOL , 'whether the WS was called by a timer when the time is up' , VALUE_DEFAULT , false ) , 'preflightdata' => new external_multiple_structure ( new external_single_structure ( array ( 'name' => new external_value ( PARAM_ALPHANUMEXT , 'data name' ) , 'value' => new external_value ( PARAM_RAW , 'data value' ) , ) ) , 'Preflight required data (like passwords)' , VALUE_DEFAULT , array ( ) ) ) ) ; }
Describes the parameters for process_attempt.

@return external_function_parameters
@since Moodle 3.1
Describes the parameters for process_attempt .