public function QuizQuestionResponse::getFeedbackValues in Quiz 7.5
Same name and namespace in other branches
- 7.6 question_types/quiz_question/quiz_question.core.inc \QuizQuestionResponse::getFeedbackValues()
Get the response part of the report form.
Return value
array Array of response data, with each item being an answer to a response. For an example, see MultichoiceResponse::getFeedbackValues(). The sub items are keyed by the feedback type. Providing a NULL option means that feedback will not be shown. See an example at LongAnswerResponse::getFeedbackValues().
6 methods override QuizQuestionResponse::getFeedbackValues()
- LongAnswerResponse::getFeedbackValues in question_types/
long_answer/ long_answer.classes.inc - Implementation of getFeedbackValues().
- MatchingResponse::getFeedbackValues in question_types/
matching/ matching.classes.inc - Implementation of getFeedbackValues().
- MultichoiceResponse::getFeedbackValues in question_types/
multichoice/ multichoice.classes.inc - Implementation of getFeedbackValues().
- ScaleResponse::getFeedbackValues in question_types/
scale/ scale.classes.inc - Implementation of getFeedbackValues().
- ShortAnswerResponse::getFeedbackValues in question_types/
short_answer/ short_answer.classes.inc - Implementation of getFeedbackValues().
File
- question_types/
quiz_question/ quiz_question.core.inc, line 762 - Classes used in the Quiz Question module.
Class
- QuizQuestionResponse
- Each question type must store its own response data and be able to calculate a score for that data.
Code
public function getFeedbackValues() {
$data = array();
$data[] = array(
'choice' => 'True',
'attempt' => 'Did the user choose this?',
'correct' => 'Was their answer correct?',
'score' => 'Points earned for this answer',
'answer_feedback' => 'Feedback specific to the answer',
'question_feedback' => 'General question feedback for any answer',
'solution' => 'Is this choice the correct solution?',
'quiz_feedback' => 'Quiz feedback at this time',
);
return $data;
}