original_string: protected function initialise_combined_feedback(question_definition $question,
              $questiondata, $withparts = false) {
          $question->correctfeedback = $questiondata->options->correctfeedback;
          $question->correctfeedbackformat = $questiondata->options->correctfeedbackformat;
          $question->partiallycorrectfeedback = $questiondata->options->partiallycorrectfeedback;
          $question->partiallycorrectfeedbackformat =
                  $questiondata->options->partiallycorrectfeedbackformat;
          $question->incorrectfeedback = $questiondata->options->incorrectfeedback;
          $question->incorrectfeedbackformat = $questiondata->options->incorrectfeedbackformat;
          if ($withparts) {
              $question->shownumcorrect = $questiondata->options->shownumcorrect;
          }
      }
code: protected function initialise_combined_feedback(question_definition $question,
              $questiondata, $withparts = false) {
          $question->correctfeedback = $questiondata->options->correctfeedback;
          $question->correctfeedbackformat = $questiondata->options->correctfeedbackformat;
          $question->partiallycorrectfeedback = $questiondata->options->partiallycorrectfeedback;
          $question->partiallycorrectfeedbackformat =
                  $questiondata->options->partiallycorrectfeedbackformat;
          $question->incorrectfeedback = $questiondata->options->incorrectfeedback;
          $question->incorrectfeedbackformat = $questiondata->options->incorrectfeedbackformat;
          if ($withparts) {
              $question->shownumcorrect = $questiondata->options->shownumcorrect;
          }
      }
code_tokens: protected function initialise_combined_feedback ( question_definition $ question , $ questiondata , $ withparts = false ) { $ question -> correctfeedback = $ questiondata -> options -> correctfeedback ; $ question -> correctfeedbackformat = $ questiondata -> options -> correctfeedbackformat ; $ question -> partiallycorrectfeedback = $ questiondata -> options -> partiallycorrectfeedback ; $ question -> partiallycorrectfeedbackformat = $ questiondata -> options -> partiallycorrectfeedbackformat ; $ question -> incorrectfeedback = $ questiondata -> options -> incorrectfeedback ; $ question -> incorrectfeedbackformat = $ questiondata -> options -> incorrectfeedbackformat ; if ( $ withparts ) { $ question -> shownumcorrect = $ questiondata -> options -> shownumcorrect ; } }
docstring: Initialise the combined feedback fields.
  @param question_definition $question the question_definition we are creating.
  @param object $questiondata the question data loaded from the database.
  @param bool $withparts whether to set the shownumcorrect field.
docstring_tokens: Initialise the combined feedback fields .