LLMS_Quiz_Attempt::set_questions( array $questions = array(), boolean $save = false )
Setter for serialized questions array
Parameters Parameters
- $questions
-
(array) (Optional) Question data.
Default value: array()
- $save
-
(boolean) (Optional) If
true
, immediately persists to database. 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
return false; } }
Expand full source code Collapse full source code View on GitHub
Changelog Changelog
Version | Description |
---|---|
3.16.0 | Introduced. |