public function ScaleResponse::save in Quiz 6.6
Same name and namespace in other branches
- 8.6 question_types/quiz_scale/src/Plugin/quiz/QuizQuestion/ScaleResponse.php \ScaleResponse::save()
- 8.5 question_types/quiz_scale/src/Plugin/quiz/QuizQuestion/ScaleResponse.php \ScaleResponse::save()
- 6.4 question_types/scale/scale.classes.inc \ScaleResponse::save()
- 7.6 question_types/scale/scale.classes.inc \ScaleResponse::save()
- 7 question_types/scale/scale.classes.inc \ScaleResponse::save()
- 7.4 question_types/scale/scale.classes.inc \ScaleResponse::save()
- 7.5 question_types/scale/scale.classes.inc \ScaleResponse::save()
Implementation of save
File
- question_types/
scale/ scale.classes.inc, line 519 - The main classes for the scale question type.
Class
- ScaleResponse
- The short answer question response class.
Code
public function save() {
$sql = "INSERT INTO {quiz_scale_user_answers}\n (answer_id, result_id, question_vid, question_nid)\n VALUES (%d, %d, %d, %d)";
db_query($sql, $this->answer_id, $this->rid, $this->question->vid, $this->question->nid);
}