public function ShortAnswerResponse::getReportFormSubmit in Quiz 7.4
Same name and namespace in other branches
- 6.4 question_types/short_answer/short_answer.classes.inc \ShortAnswerResponse::getReportFormSubmit()
- 7.6 question_types/short_answer/short_answer.classes.inc \ShortAnswerResponse::getReportFormSubmit()
- 7 question_types/short_answer/short_answer.classes.inc \ShortAnswerResponse::getReportFormSubmit()
- 7.5 question_types/short_answer/short_answer.classes.inc \ShortAnswerResponse::getReportFormSubmit()
Implementation of getReportFormSubmit
Overrides QuizQuestionResponse::getReportFormSubmit
See also
QuizQuestionResponse#getReportFormSubmit($showfeedback, $showpoints, $allow_scoring)
File
- question_types/
short_answer/ short_answer.classes.inc, line 526 - The main classes for the short answer question type.
Class
- ShortAnswerResponse
- Extension of QuizQuestionResponse
Code
public function getReportFormSubmit($showfeedback = TRUE, $showpoints = TRUE, $allow_scoring = FALSE) {
if (quiz_access_to_score() && $allow_scoring) {
return $allow_scoring ? 'short_answer_report_submit' : FALSE;
}
return FALSE;
}