Structs§
- Chapter
- Chapter
Availability - Chapter
Info - Chapter
Lock Preview - Chapter
Pages With Exercises - Chapter
Update - Chapter
With Status - Course
User Info - Database
Chapter - NewChapter
- Unreturned
Exercise - User
Chapter Progress - User
Course Instance Chapter Progress
Enums§
Functions§
- course_
chapters - course_
instance_ chapters - delete_
chapter - fetch_
chapter_ availability - fetch_
course_ users - fetch_
user_ chapter_ progress - get_
chapter - get_
chapter_ by_ page_ id - get_
chapter_ info_ by_ page_ metadata - get_
chapter_ lock_ preview - get_
course_ id - get_
for_ module - get_
previous_ chapters_ in_ module - get_
user_ course_ instance_ chapter_ progress - insert
- is_open
- Checks the opens_at field for the chapter and compares it to the current time. If null, the chapter is always open.
- move_
chapter_ exercises_ to_ manual_ review - set_
front_ page - set_
module - set_
opens_ at - unlock_
first_ chapters_ for_ user - Unlocks the first chapter(s) with exercises in the base module (order_number == 0) for a user. Also unlocks any chapters without exercises that come before the first chapter with exercises.
- unlock_
next_ chapters_ for_ user - Unlocks the next chapter(s) for a user after they complete a chapter. If the completed chapter is the last in a base module (order_number == 0), unlocks the first chapter of all additional modules (order_number != 0). Otherwise, unlocks the next chapter in the same module. Note: If a module has no chapters with exercises, all chapters in that module will be unlocked. This is intentional to allow progression through content-only chapters.
- update_
chapter - update_
chapter_ image_ path