LLMS_Student_Quizzes::get_attempt_by_id( int $attempt_id )
Retrieve an attempt by attempt id
Description Description
Parameters Parameters
- $attempt_id
-
(Required) Attempt ID.
Return Return
(LLMS_Quiz_Attempt|boolean) Returns the quiz attempt or false
if the attempt doesn't exist or doesn't belong to the initialized student.
Source Source
File: includes/models/model.llms.student.quizzes.php
Changelog Changelog
Version | Description |
---|---|
4.21.2 | Return false for invalid IDs & check permissions before returning the attempt. |
3.16.0 | Introduced. |