Home Reference Source

Typedef

Static Public Summary
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.

Static Public

public ContextLevelAlias: string source

An alias for the base name for the Moodle Context Level. These names consist of only camel-cased letters.

Example:

'courseCategory'

public ContextLevelBaseName: string source

The base names for a Moodle Context Level. These are the names of the PHP constants with the CONTEXT_ prefix removed and converted to lower case.

Example:

'system'

See:

public ContextLevelName: string source

A Moodle Context Level name. These are the names of the PHP constants defined in the Moodle code ([lib/accesslib.php](https://github.com/moodle/moodle/blob/master/lib/accesslib.php)).

Example:

'CONTEXT_SYSTEM'

public ContextLevelNumber: string | number source

A Moodle Context Level number. These are the actual numbers used in the Moodle database tables to represent the different context levels.

Example:

'10'