LDLMS_Model_Exam
Class for LearnDash Exam.
Description #
Source #
Changelog #
Version | Description |
---|---|
4.0.0 | Introduced. |
Methods #
- __construct — Class constructor.
- __get — Generic getter function to access misc class properties.
- exam_grading_from_questions — Process Exam grading from Questions.
- exam_questions_grading — Exam grade questions answers
- get_front_content — Show the Exam front.
- get_grade — Public function to get the Exam grade.
- get_nonce_key — Class utility function to generate the Exam nonce key.
- get_nonce_value — Class utility function to generate the Exam nonce value.
- get_questions_count — Public function to get the number of valid exam questions.
- get_result_button_params — Get Exam Result Message Button Parameters.
- get_result_message — Get Exam result message after grading.
- init — Initialize post.
- is_graded — Public function to check if Exam is graded.
- load_question_models_from_post_content — Get Question Models LDLMS_Model_Exam_Question from post content.
- prepare_exam_activity_meta — Prepare the Activity meta for the exam.
- process_exam_submit — Process the Exam submit.
- set_course_complete — Set the Exam Course as completed if the Exam was passed.
- set_exam_activity — Set the Activity record and meta for the exam.