Moodle PHP Documentation 4.1
Moodle 4.1.11 (Build: 20240610) (c8c84b4af18)
external_settings Class Reference

Singleton to handle the external settings. More...

Public Member Functions

 get_file ()
 Get file.
 
 get_fileurl ()
 Get fileurl.
 
 get_filter ()
 Get filter.
 
 get_lang ()
 Get lang.
 
 get_raw ()
 Get raw.
 
 get_timezone ()
 Get timezone.
 
 set_file ($file)
 Set file.
 
 set_fileurl ($fileurl)
 Set fileurl.
 
 set_filter ($filter)
 Set filter.
 
 set_lang ($lang)
 Set lang.
 
 set_raw ($raw)
 Set raw.
 
 set_timezone ($timezone)
 Set timezone.
 

Static Public Member Functions

static get_instance ()
 Return only one instance.
 

Static Public Attributes

static object $instance = null
 the singleton instance
 

Protected Member Functions

 __construct ()
 Constructor - protected - can not be instanciated.
 

Detailed Description

Singleton to handle the external settings.

We use singleton to encapsulate the "logic"

License
http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
Since
Moodle 2.3

Member Function Documentation

◆ get_file()

external_settings::get_file ( )

Get file.

Return values
string

◆ get_fileurl()

external_settings::get_fileurl ( )

Get fileurl.

Return values
boolean

◆ get_filter()

external_settings::get_filter ( )

Get filter.

Return values
boolean

◆ get_instance()

static external_settings::get_instance ( )
static

Return only one instance.

Return values
external_settings

◆ get_lang()

external_settings::get_lang ( )

Get lang.

Return values
string

◆ get_raw()

external_settings::get_raw ( )

Get raw.

Return values
boolean

◆ get_timezone()

external_settings::get_timezone ( )

Get timezone.

Return values
string

◆ set_file()

external_settings::set_file ( $file)

Set file.

Parameters
string$file

◆ set_fileurl()

external_settings::set_fileurl ( $fileurl)

Set fileurl.

Parameters
boolean$fileurl

◆ set_filter()

external_settings::set_filter ( $filter)

Set filter.

Parameters
boolean$filter

◆ set_lang()

external_settings::set_lang ( $lang)

Set lang.

Parameters
string$lang

◆ set_raw()

external_settings::set_raw ( $raw)

Set raw.

Parameters
boolean$raw

◆ set_timezone()

external_settings::set_timezone ( $timezone)

Set timezone.

Parameters
string$timezone

The documentation for this class was generated from the following file: