ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
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)
 
 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.

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

References $il_settings.

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,
41 );
42
43 return new LSGlobalSettings($interval_seconds);
44 }
Global Settings of the Learning Sequence.

References POLL_INTERVAL_DEFAULT.

◆ storeSettings()

ilLSGlobalSettingsDB::storeSettings ( LSGlobalSettings  $settings)

Implements LSGlobalSettingsDB.

Definition at line 46 of file ilLSGlobalSettingsDB.php.

46 : void
47 {
48 $this->il_settings->set(
49 self::SETTING_POLL_INTERVAL,
50 (string) $settings->getPollingIntervalSeconds()
51 );
52 }

References LSGlobalSettings\getPollingIntervalSeconds().

+ 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.

Referenced by getSettings().

◆ 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: