Skip to main content

Module model

Module model 

Source
Expand description

The course tree the structure tools read and edit, and the paths that address it.

Structsยง

CourseStructure
The course tree as agents read and edit it. Children arrays are in display order.
Loc ๐Ÿ”’
Where an entity is: its list and its index there.
StructureChapter
A chapter and its pages in order.
StructureModule
A module and its chapters in order.
StructurePage
A pageโ€™s own fields with counts of its content; the blocks are the page toolโ€™s.
StructurePath ๐Ÿ”’
A structure path split into its parts, before its ids and labels are resolved: /<root>/<child>/โ€ฆ.

Enumsยง

Entity ๐Ÿ”’
EntityRef ๐Ÿ”’
A module, chapter or page of a CourseStructure. Serializes as the entity itself.
Kind ๐Ÿ”’
What a course tree entity is.
ListRef ๐Ÿ”’
One of the course treeโ€™s ordered lists.

Constantsยง

RENDERED_KEYS ๐Ÿ”’
Keys a read adds to an entity besides its fields. Writes ignore them, so an entity read back can be written again.

Functionsยง

entity_ids ๐Ÿ”’
parse_structure_path ๐Ÿ”’
Splits a structure path into its parts; None when it doesnโ€™t start with /.