LLMS_Quiz_Attempt::end( boolean $silent = false )
End a quiz attempt
Description Description
Sets end date, unsets the quiz as the current quiz, and records a grade.
Parameters Parameters
- $silent
-
(Optional) If
true, will not trigger actions or mark related lesson as complete. Defaultfalse.Default value: false
Return Return
(LLMS_Quiz_Attempt) This quiz attempt instance (for chaining).
Source Source
File: includes/models/model.llms.quiz.attempt.php
Changelog Changelog
| Version | Description |
|---|---|
| 3.9.0 | |
| 3.16.0 | Introduced. |