LDLMS_Model_User_Course_Progress
Class for LearnDash LearnDash User Progress Course Class.
Description #
Source #
File: includes/classes/class-ldlms-model-user-course-progress.php
Changelog #
Version | Description |
---|---|
3.4.0 | Introduced. |
Methods #
- __construct — Public constructor for class.
- build_course_progress_by_activity — Build the Course Progress node for 'activity' Activity.
- build_course_progress_completed_count — Build the Course Progress Completes Steps Count.
- build_course_progress_completion_order — Build the Course Progress node for 'co' Completion order.
- build_course_progress_legacy — Build Course Progress node for 'legacy'.
- build_course_progress_linear_order — Build the Course Progress node for 'l' Linear order.
- build_course_progress_summary — Build the Course Progress node for 'summary' Summary.
- changed_user_meta_progress_legacy — Hook into the user meta update logic from WordPress so we know if external processes add/update the user meta value. If so we set the dirty flag to force a reload of the meta and rebuild the data structure.
- get_course_progress_legacy — Get the legacy user meta course progression node for a specific course.
- get_progress — Get User Course Progress by progress type.
- get_progress_legacy — Get User Course Progress by 'legacy' type.
- initialize — Initialize the User class vars.
- load_course_progress — Build User Course Progress nodes for Course.
- load_user_meta_progress_legacy — Load the Course Progress from the usermeta record.
- save_user_meta_progress_legacy — Save the Course Progress to the usermeta record.
- set_progress — Set Progress steps.
- set_progress_unloaded — Sets the Progress loaded flag to false and clears all data structures.