ILIAS  trunk Revision v11.0_alpha-1866-gfa368f7776e
All Data Structures Namespaces Files Functions Variables Enumerations Enumerator Modules Pages
ilLSGlobalSettingsDB Class Reference

Repository for LSGlobalSettings over ILIAS global settings. More...

+ Inheritance diagram for ilLSGlobalSettingsDB:
+ Collaboration diagram for ilLSGlobalSettingsDB:

Public Member Functions

 __construct (\ilSetting $il_settings)
 
 getSettings ()
 
 storeSettings (LSGlobalSettings $settings)
 

Data Fields

const SETTING_POLL_INTERVAL = 'lso_polling_interval'
 
const POLL_INTERVAL_DEFAULT = 10
 

Protected Attributes

ilSetting $il_settings
 

Detailed Description

Repository for LSGlobalSettings over ILIAS global settings.

Definition at line 24 of file ilLSGlobalSettingsDB.php.

Constructor & Destructor Documentation

◆ __construct()

ilLSGlobalSettingsDB::__construct ( \ilSetting  $il_settings)

Definition at line 31 of file ilLSGlobalSettingsDB.php.

References $il_settings.

32  {
33  $this->il_settings = $il_settings;
34  }

Member Function Documentation

◆ getSettings()

ilLSGlobalSettingsDB::getSettings ( )

Implements LSGlobalSettingsDB.

Definition at line 36 of file ilLSGlobalSettingsDB.php.

37  {
38  $interval_seconds = (float) $this->il_settings->get(
39  self::SETTING_POLL_INTERVAL,
40  (string) self::POLL_INTERVAL_DEFAULT
41  );
42 
43  return new LSGlobalSettings($interval_seconds);
44  }
Global Settings of the Learning Sequence.

◆ storeSettings()

ilLSGlobalSettingsDB::storeSettings ( LSGlobalSettings  $settings)

Implements LSGlobalSettingsDB.

Definition at line 46 of file ilLSGlobalSettingsDB.php.

References LSGlobalSettings\getPollingIntervalSeconds().

46  : void
47  {
48  $this->il_settings->set(
49  self::SETTING_POLL_INTERVAL,
50  (string) $settings->getPollingIntervalSeconds()
51  );
52  }
+ Here is the call graph for this function:

Field Documentation

◆ $il_settings

ilSetting ilLSGlobalSettingsDB::$il_settings
protected

Definition at line 29 of file ilLSGlobalSettingsDB.php.

Referenced by __construct().

◆ POLL_INTERVAL_DEFAULT

const ilLSGlobalSettingsDB::POLL_INTERVAL_DEFAULT = 10

Definition at line 27 of file ilLSGlobalSettingsDB.php.

◆ SETTING_POLL_INTERVAL

const ilLSGlobalSettingsDB::SETTING_POLL_INTERVAL = 'lso_polling_interval'

Definition at line 26 of file ilLSGlobalSettingsDB.php.


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