Skip to main content

Module user_chapter_locking_statuses

Module user_chapter_locking_statuses 

Source

Structs§

UserChapterLockingStatus

Enums§

ChapterLockingStatus

Functions§

complete_and_lock_chapter
ensure_not_unlocked_yet_status
Creates a status row with not_unlocked_yet status if one doesn’t exist. If a row already exists (with any status), returns the existing row without modifying it. This function does not overwrite existing statuses.
get_all_for_course
get_for_user_and_course
Returns all chapter locking statuses for a specific user in a course.
get_or_init_all_for_course
get_or_init_status
get_or_init_status_row 🔒
is_chapter_accessible
is_chapter_exercises_locked
set_chapter_status
unlock_chapter
unlock_chapters_for_user
Unlocks the provided chapters for a user within a course.