public function ScaleResponse::delete in Quiz 6.4
Same name and namespace in other branches
- 8.6 question_types/quiz_scale/src/Plugin/quiz/QuizQuestion/ScaleResponse.php \ScaleResponse::delete()
- 8.5 question_types/quiz_scale/src/Plugin/quiz/QuizQuestion/ScaleResponse.php \ScaleResponse::delete()
- 6.6 question_types/scale/scale.classes.inc \ScaleResponse::delete()
- 7.6 question_types/scale/scale.classes.inc \ScaleResponse::delete()
- 7 question_types/scale/scale.classes.inc \ScaleResponse::delete()
- 7.4 question_types/scale/scale.classes.inc \ScaleResponse::delete()
- 7.5 question_types/scale/scale.classes.inc \ScaleResponse::delete()
Implementation of delete
Overrides QuizQuestionResponse::delete
See also
QuizQuestionResponse#delete()
File
- question_types/
scale/ scale.classes.inc, line 559 - The main classes for the scale question type.
Class
- ScaleResponse
- Extension of QuizQuestionResponse
Code
public function delete() {
$sql = 'DELETE FROM {quiz_scale_user_answers}
WHERE result_id = %d AND question_nid = %d AND question_vid = %d';
db_query($sql, $this->rid, $this->question->nid, $this->question->vid);
}