Skip to main content

Module page_writes

Module page_writes 

Source
Expand description

Full page snapshots for the pages a call changed, with the exercises that follow their blocks.

Structsยง

PageWrites
Full page snapshots for the changed pages of a state, and the live snapshots of the pages among them that the user has no staged changes to.

Functionsยง

course_default_to_copy ๐Ÿ”’
The course default review config with its questions, if after copies it to an exercise.
edit_exercise ๐Ÿ”’
Writes the changes of afterโ€™s exercise records since before into bundle, if its exercise has any, and tells whether it had. page_id is the page the bundle was read from.
page_writes
Builds full page snapshots for the changed pages of after. Exercises follow their blocks, across pages too; copies are created from their source exercises.