core_courseformat/courseeditor

Generic reactive module used in the course editor.

Source:
License:
  • http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later

Members

(static, constant) getCourseEditor

Source:

Get a specific course editor reactive instance.

(static, constant) getCurrentCourseEditor

Source:

Get the current course reactive instance.

(static, constant) setViewFormat

Source:

Setup the current view settings

The backend cache state revision is a combination of the course->cacherev, the user course preferences and completion state. The backend updates that number everytime some change in the course affects the user course state.

Methods

(inner) dispatchStateChangedEvent(detail, target)

Source:

Trigger a state changed event.

This function will be moved to core_course/events module when the file is migrated to the new JS events structure proposed in MDL-70990.

Parameters:
Name Type Description
detail object

the full state

target object

the custom event target (document if none provided)