Search moodle.org's
Developer Documentation

See Release Notes

  • Bug fixes for general core bugs in 4.0.x will end 8 May 2023 (12 months).
  • Bug fixes for security issues in 4.0.x will end 13 November 2023 (18 months).
  • PHP version: minimum PHP 7.3.0 Note: the minimum PHP version has increased since Moodle 3.10. PHP 7.4.x is also supported.

Differences Between: [Versions 400 and 401] [Versions 400 and 402] [Versions 400 and 403]

(no description)

File Size: 251 lines (11 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 1 class


Class: config  - X-Ref

Handles the global configuration based on config.php.

get_moodle_version_major()   X-Ref
Returns moodle version.

return: string

defaultvalues()   X-Ref
Returns configuration default values.

return: array

defaultvalue(string $setting)   X-Ref
Returns default value for an specific setting.

return: string|null
param: string $setting

get(string $setting)   X-Ref
Returns value for an specific setting.

return: string
param: string $setting

recordings_enabled()   X-Ref
Validates if recording settings are enabled.

return: bool

importrecordings_enabled()   X-Ref
Validates if imported recording settings are enabled.

return: bool

get_options()   X-Ref
Wraps current settings in an array.

return: array

get_enabled_features(array $typeprofiles, ?string $type = null)   X-Ref
Helper function returns an array with enabled features for an specific profile type.

return: array
param: array $typeprofiles
param: string|null $type