LLMS_Quiz_Attempt::do_completion_actions()
Run actions designating quiz completion
Return Return
(void)
Source Source
File: includes/models/model.llms.quiz.attempt.php
public function do_completion_actions() { // Do quiz completion actions. do_action( 'lifterlms_quiz_completed', $this->get_student()->get_id(), $this->get( 'quiz_id' ), $this ); $passed = false; switch ( $this->get( 'status' ) ) { case 'pass': $passed = true; do_action( 'lifterlms_quiz_passed', $this->get_student()->get_id(), $this->get( 'quiz_id' ), $this ); break; case 'fail': do_action( 'lifterlms_quiz_failed', $this->get_student()->get_id(), $this->get( 'quiz_id' ), $this ); break; case 'pending': do_action( 'lifterlms_quiz_pending', $this->get_student()->get_id(), $this->get( 'quiz_id' ), $this ); break; } }
Expand full source code Collapse full source code View on GitHub
Changelog Changelog
Version | Description |
---|---|
3.17.1 | Unknown. |
3.16.0 | Introduced. |