LLMS_Quiz_Attempt::set_status( string $status, boolean $save = false )
Set the status of the attempt
Parameters Parameters
- $status
-
(string) (Required) Status value.
- $save
-
(boolean) (Optional) If
true
, immediately persists to database.Default value: false
Return Return
(false|LLMS_Quiz_Attempt)
Source Source
File: includes/models/model.llms.quiz.attempt.php
* @return boolean */ public function is_passing() { return ( 'pass' === $this->get( 'status' ) ); } /** * Translate attempt related strings *
Expand full source code Collapse full source code View on GitHub
Changelog Changelog
Version | Description |
---|---|
4.0.0 | Use strict comparisons. |
3.16.0 | Introduced. |