Search moodle.org's
Developer Documentation

See Release Notes

  • Bug fixes for general core bugs in 4.3.x will end 7 October 2024 (12 months).
  • Bug fixes for security issues in 4.3.x will end 21 April 2025 (18 months).
  • PHP version: minimum PHP 8.0.0 Note: minimum PHP version has increased since Moodle 4.1. PHP 8.2.x is supported too.

(no description)

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

Defines 1 class

external_settings:: (15 methods):
  __construct()
  get_instance()
  reset()
  set_raw()
  get_raw()
  set_filter()
  get_filter()
  set_fileurl()
  get_fileurl()
  set_file()
  get_file()
  set_lang()
  get_lang()
  set_timezone()
  get_timezone()


Class: external_settings  - X-Ref

Singleton to handle the external settings..

We use singleton to encapsulate the "logic".

__construct()   X-Ref
Constructor - protected - can not be instanciated


get_instance()   X-Ref
Return only one instance

return: self

reset()   X-Ref
Reset the singleton instance.


set_raw($raw)   X-Ref
Set raw

param: boolean $raw

get_raw()   X-Ref
Get raw

return: boolean

set_filter($filter)   X-Ref
Set filter

param: boolean $filter

get_filter()   X-Ref
Get filter

return: boolean

set_fileurl($fileurl)   X-Ref
Set fileurl

param: bool $fileurl

get_fileurl()   X-Ref
Get fileurl

return: bool

set_file($file)   X-Ref
Set file

param: string $file

get_file()   X-Ref
Get file

return: string

set_lang($lang)   X-Ref
Set lang

param: string $lang

get_lang()   X-Ref
Get lang

return: string

set_timezone($timezone)   X-Ref
Set timezone

param: string $timezone

get_timezone()   X-Ref
Get timezone

return: string