original_string: public static function get_user_attempt_returns() {
          return new external_single_structure(
              array(
                  'answerpages' => new external_multiple_structure(
                      new external_single_structure(
                          array(
                              'page' => self::get_page_structure(VALUE_OPTIONAL),
                              'title' => new external_value(PARAM_RAW, 'Page title.'),
                              'contents' => new external_value(PARAM_RAW, 'Page contents.'),
                              'qtype' => new external_value(PARAM_TEXT, 'Identifies the page type of this page.'),
                              'grayout' => new external_value(PARAM_INT, 'If is required to apply a grayout.'),
                              'answerdata' => new external_single_structure(
                                  array(
                                      'score' => new external_value(PARAM_TEXT, 'The score (text version).'),
                                      'response' => new external_value(PARAM_RAW, 'The response text.'),
                                      'responseformat' => new external_format_value('response.'),
                                      'answers' => new external_multiple_structure(
                                          new external_multiple_structure(new external_value(PARAM_RAW, 'Possible answers and info.')),
                                          'User answers',
                                          VALUE_OPTIONAL
                                      ),
                                  ), 'Answer data (empty in content pages created in Moodle 1.x).', VALUE_OPTIONAL
                              )
                          )
                      )
                  ),
                  'userstats' => new external_single_structure(
                      array(
                          'grade' => new external_value(PARAM_FLOAT, 'Attempt final grade.'),
                          'completed' => new external_value(PARAM_INT, 'Time completed.'),
                          'timetotake' => new external_value(PARAM_INT, 'Time taken.'),
                          'gradeinfo' => self::get_user_attempt_grade_structure(VALUE_OPTIONAL)
                      )
                  ),
                  'warnings' => new external_warnings(),
              )
          );
      }
code: public static function get_user_attempt_returns() {
          return new external_single_structure(
              array(
                  'answerpages' => new external_multiple_structure(
                      new external_single_structure(
                          array(
                              'page' => self::get_page_structure(VALUE_OPTIONAL),
                              'title' => new external_value(PARAM_RAW, 'Page title.'),
                              'contents' => new external_value(PARAM_RAW, 'Page contents.'),
                              'qtype' => new external_value(PARAM_TEXT, 'Identifies the page type of this page.'),
                              'grayout' => new external_value(PARAM_INT, 'If is required to apply a grayout.'),
                              'answerdata' => new external_single_structure(
                                  array(
                                      'score' => new external_value(PARAM_TEXT, 'The score (text version).'),
                                      'response' => new external_value(PARAM_RAW, 'The response text.'),
                                      'responseformat' => new external_format_value('response.'),
                                      'answers' => new external_multiple_structure(
                                          new external_multiple_structure(new external_value(PARAM_RAW, 'Possible answers and info.')),
                                          'User answers',
                                          VALUE_OPTIONAL
                                      ),
                                  ), 'Answer data (empty in content pages created in Moodle 1.x).', VALUE_OPTIONAL
                              )
                          )
                      )
                  ),
                  'userstats' => new external_single_structure(
                      array(
                          'grade' => new external_value(PARAM_FLOAT, 'Attempt final grade.'),
                          'completed' => new external_value(PARAM_INT, 'Time completed.'),
                          'timetotake' => new external_value(PARAM_INT, 'Time taken.'),
                          'gradeinfo' => self::get_user_attempt_grade_structure(VALUE_OPTIONAL)
                      )
                  ),
                  'warnings' => new external_warnings(),
              )
          );
      }
code_tokens: public static function get_user_attempt_returns ( ) { return new external_single_structure ( array ( 'answerpages' => new external_multiple_structure ( new external_single_structure ( array ( 'page' => self :: get_page_structure ( VALUE_OPTIONAL ) , 'title' => new external_value ( PARAM_RAW , 'Page title.' ) , 'contents' => new external_value ( PARAM_RAW , 'Page contents.' ) , 'qtype' => new external_value ( PARAM_TEXT , 'Identifies the page type of this page.' ) , 'grayout' => new external_value ( PARAM_INT , 'If is required to apply a grayout.' ) , 'answerdata' => new external_single_structure ( array ( 'score' => new external_value ( PARAM_TEXT , 'The score (text version).' ) , 'response' => new external_value ( PARAM_RAW , 'The response text.' ) , 'responseformat' => new external_format_value ( 'response.' ) , 'answers' => new external_multiple_structure ( new external_multiple_structure ( new external_value ( PARAM_RAW , 'Possible answers and info.' ) ) , 'User answers' , VALUE_OPTIONAL ) , ) , 'Answer data (empty in content pages created in Moodle 1.x).' , VALUE_OPTIONAL ) ) ) ) , 'userstats' => new external_single_structure ( array ( 'grade' => new external_value ( PARAM_FLOAT , 'Attempt final grade.' ) , 'completed' => new external_value ( PARAM_INT , 'Time completed.' ) , 'timetotake' => new external_value ( PARAM_INT , 'Time taken.' ) , 'gradeinfo' => self :: get_user_attempt_grade_structure ( VALUE_OPTIONAL ) ) ) , 'warnings' => new external_warnings ( ) , ) ) ; }
docstring: Describes the get_user_attempt return value.
  
  @return external_single_structure
  @since Moodle 3.3
docstring_tokens: Describes the get_user_attempt return value .