You are here

public function ScaleResponse::delete in Quiz 6.6

Same name and namespace in other branches
  1. 8.6 question_types/quiz_scale/src/Plugin/quiz/QuizQuestion/ScaleResponse.php \ScaleResponse::delete()
  2. 8.5 question_types/quiz_scale/src/Plugin/quiz/QuizQuestion/ScaleResponse.php \ScaleResponse::delete()
  3. 6.4 question_types/scale/scale.classes.inc \ScaleResponse::delete()
  4. 7.6 question_types/scale/scale.classes.inc \ScaleResponse::delete()
  5. 7 question_types/scale/scale.classes.inc \ScaleResponse::delete()
  6. 7.4 question_types/scale/scale.classes.inc \ScaleResponse::delete()
  7. 7.5 question_types/scale/scale.classes.inc \ScaleResponse::delete()

Implementation of delete

File

question_types/scale/scale.classes.inc, line 528
The main classes for the scale question type.

Class

ScaleResponse
The short answer question response class.

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);
}