function QuizQuestionResponse::isCorrect in Quiz 8.4
Check to see if the answer is marked as correct.
This default version returns TRUE iff the score is equal to the maximum possible score.
4 calls to QuizQuestionResponse::isCorrect()
- MatchingResponse::__construct in question_types/
matching/ lib/ Drupal/ matching/ MatchingResponse.php - Constructor
- QuizQuestionResponse::getReport in question_types/
quiz_question/ lib/ Drupal/ quiz_question/ QuizQuestionResponse.php - Get data suitable for reporting a user's score on the question. This expects an object with the following attributes:
- QuizQuestionResponse::getReportForm in question_types/
quiz_question/ lib/ Drupal/ quiz_question/ QuizQuestionResponse.php - Creates the report form for the admin pages, and for when a user gets feedback after answering questions.
- QuizQuestionResponse::toBareObject in question_types/
quiz_question/ lib/ Drupal/ quiz_question/ QuizQuestionResponse.php - Represent the response as a stdClass object.
File
- question_types/
quiz_question/ lib/ Drupal/ quiz_question/ QuizQuestionResponse.php, line 79
Class
Namespace
Drupal\quiz_questionCode
function isCorrect() {
return $this
->getMaxScore() == $this
->getScore();
}