You are here

public function ScaleResponse::delete in Quiz 8.5

Same name and namespace in other branches
  1. 8.6 question_types/quiz_scale/src/Plugin/quiz/QuizQuestion/ScaleResponse.php \ScaleResponse::delete()
  2. 6.6 question_types/scale/scale.classes.inc \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().

See also

QuizQuestionResponse::delete()

File

question_types/quiz_scale/src/Plugin/quiz/QuizQuestion/ScaleResponse.php, line 56

Class

ScaleResponse
Extension of QuizQuestionResponse.

Code

public function delete() {
  db_delete('quiz_scale_user_answers')
    ->condition('result_answer_id', $this->result_answer_id)
    ->execute();
}