Expand description
Conversions between the stored entity snapshots and the documents the edit engines work on.
Structs§
- Page
Facts - Live facts about pages that the course tree shows.
Functions§
- apply_
glossary - Replaces the glossary terms and references with the document’s.
- apply_
page_ documents - Sets the blocks of each page in
documents. - apply_
settings - Writes the editable fields of the settings document back. Read-only fields are left alone.
- apply_
structure - The state after the structure engine turned
beforeintoafter.contentsholds the blocks of new pages. Order numbers change only in lists whose order changed. - completion_
policy 🔒 - glossary_
document - The glossary and references document of the glossary tool.
- increasing_
order_ 🔒numbers - Order numbers for a list in its new order, given each entry’s current number (
Noneif new). The first gets 0, reserved for front pages and the default module; the others keep theirs while strictly increasing, so only added, moved and pushed entries are renumbered. - list_
order_ 🔒numbers - New order numbers for the list
after(entries with their current number,Noneif new), or allNone(keep every number) when the order equalsbefore_ids. A list with nobefore_idsis renumbered. - model_
completion_ 🔒policy - page_
document - The page with its editor context, or
Noneif the course has no such page. - page_
lists 🔒 - page_
ref - The page with its editor context, borrowed.
- page_
refs - Every page of the course with its editor context, borrowed.
- page_
type - The editor context the page’s blocks are checked in.
- settings_
document - The settings document of the settings tool: the course’s own settings and its modules’.
- structure
- The course tree the structure engine edits, with the live facts of its pages.
- structure_
page 🔒