original_string: public function get_submitted_data($postdata = null) {
          $submitteddata = $this->get_expected_data(
                  $this->behaviour->get_expected_data(), $postdata, '-');
  
          $expected = $this->behaviour->get_expected_qt_data();
          $this->check_qt_var_name_restrictions($expected);
  
          if ($expected === self::USE_RAW_DATA) {
              $submitteddata += $this->get_all_submitted_qt_vars($postdata);
          } else {
              $submitteddata += $this->get_expected_data($expected, $postdata, '');
          }
          return $submitteddata;
      }
code: public function get_submitted_data($postdata = null) {
          $submitteddata = $this->get_expected_data(
                  $this->behaviour->get_expected_data(), $postdata, '-');
  
          $expected = $this->behaviour->get_expected_qt_data();
          $this->check_qt_var_name_restrictions($expected);
  
          if ($expected === self::USE_RAW_DATA) {
              $submitteddata += $this->get_all_submitted_qt_vars($postdata);
          } else {
              $submitteddata += $this->get_expected_data($expected, $postdata, '');
          }
          return $submitteddata;
      }
code_tokens: public function get_submitted_data ( $ postdata = null ) { $ submitteddata = $ this -> get_expected_data ( $ this -> behaviour -> get_expected_data ( ) , $ postdata , '-' ) ; $ expected = $ this -> behaviour -> get_expected_qt_data ( ) ; $ this -> check_qt_var_name_restrictions ( $ expected ) ; if ( $ expected === self :: USE_RAW_DATA ) { $ submitteddata += $ this -> get_all_submitted_qt_vars ( $ postdata ) ; } else { $ submitteddata += $ this -> get_expected_data ( $ expected , $ postdata , '' ) ; } return $ submitteddata ; }
docstring: Get all the sumbitted data belonging to this question attempt from the
  current request.
  @param array $postdata (optional, only inteded for testing use) take the
  data from this array, instead of from $_POST.
  @return array name => value pairs that could be passed to {@link process_action()}.
docstring_tokens: Get all the sumbitted data belonging to this question attempt from the current request .