LLMS_Quiz_Attempt::do_completion_actions()
Run actions designating quiz completion
Return Return
(void)
Source Source
File: includes/models/model.llms.quiz.attempt.php
200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 | 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. |