Gets all pages that belong to the given course that match the visibility filter.
Gets the page that belongs to the given exam. For exams, the page visibility is ignored.
Gets all pages that belong to the given chapter that match the visibility filter.
Gets all pages that belong to the given course but not in any chapter.
Returns search results for a phrase i.e. looks for matches where the words come up right after each other
Returns search results for the given words. The words can appear in the source document in any order.
Makes the order numbers and chapter ids to match in the db whatβs in the page objects
Assumes that all pages belong to the given course id
Also assumes the list of pages includes all nondeleted pages in the course, except chapter front pages, which cannot be moved, otherwise we will end up with random order numbers
Restore page contents and exercises to a previous revision
Only used when testing.
Remaps ids from updates to exercise slides that may have their ids changed.
Remaps ids from updates to exercise tasks that may have their ids changed.
Remaps ids from updates to exercises that may have their ids regenerated.