Home Reference Source

References

summary
public

A class for representing Context Levels within the Moodle VLE's permissions system.

As well as the various functions and properties described in the documetation below there are also dynamically created properties with each valid context level name which get MoodleContextLevel instances for the matching level. In many instances these accessors will obviate the need to use a contructor.

const sysCtx = MoodleContextLevel.system;
const courseCtx = MoodleContextLevel.CONTEXT_COURSE;
public

An alias for the base name for the Moodle Context Level.

public

The base names for a Moodle Context Level.

public

A Moodle Context Level name.

public

A Moodle Context Level number.