LDLMS_Quiz_Questions
Class for LearnDash Quiz Questions.
Description Description
Source Source
File: includes/classes/class-ldlms-model-quiz-questions.php
Changelog Changelog
Version | Description |
---|---|
2.6.0 | Introduced. |
Methods Methods
- __construct — Public constructor for class.
- build_questions — Build the ProQuiz question objects from the post_ids
- clear_questions_dirty — Clear the quiz dirty flag.
- get_questions — Get Quiz Questions set by type.
- get_questions_count — Get the count of valid questions in quiz.
- init — Iniitialize object vars.
- is_questions_dirty — Check if the quiz dirty flag is set.
- load_questions — Load Quiz Questions.
- questions_split_keys — Process the _POST data on Quiz save. This function reformats the questions data array into the internally used format of this class.
- set_question_to_quiz_order — This function updates the postmeta 'question_order' for legacy questions.
- set_questions — Save Quiz Questions.
- set_questions_dirty — Sets the Quiz dirty flag and will force the questions to be reloaded from queries.
- set_questions_to_quiz — This function sets a post_meta association for the various questions within the quiz.
- set_questions_to_quiz_legacy — This function sets a post_meta association for the various questions within the quiz.