ILIAS  release_7 Revision v7.30-3-g800a261c036
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

 $il_settings
 

Detailed Description

Repository for LSGlobalSettings over ILIAS global settings.

Definition at line 6 of file ilLSGlobalSettingsDB.php.

Constructor & Destructor Documentation

◆ __construct()

ilLSGlobalSettingsDB::__construct ( \ilSetting  $il_settings)

Definition at line 16 of file ilLSGlobalSettingsDB.php.

17 {
18 $this->il_settings = $il_settings;
19 }

References $il_settings.

Member Function Documentation

◆ getSettings()

ilLSGlobalSettingsDB::getSettings ( )

Implements LSGlobalSettingsDB.

Definition at line 21 of file ilLSGlobalSettingsDB.php.

22 {
23 $interval_seconds = (float) $this->il_settings->get(
24 self::SETTING_POLL_INTERVAL,
25 self::POLL_INTERVAL_DEFAULT
26 );
27
28 return new LSGlobalSettings($interval_seconds);
29 }
Global Settings of the Learning Sequence.

◆ storeSettings()

ilLSGlobalSettingsDB::storeSettings ( LSGlobalSettings  $settings)

Implements LSGlobalSettingsDB.

Definition at line 31 of file ilLSGlobalSettingsDB.php.

32 {
33 $this->il_settings->set(
34 self::SETTING_POLL_INTERVAL,
35 $settings->getPollingIntervalSeconds()
36 );
37 }

References LSGlobalSettings\getPollingIntervalSeconds().

+ Here is the call graph for this function:

Field Documentation

◆ $il_settings

ilLSGlobalSettingsDB::$il_settings
protected

Definition at line 14 of file ilLSGlobalSettingsDB.php.

Referenced by __construct().

◆ POLL_INTERVAL_DEFAULT

const ilLSGlobalSettingsDB::POLL_INTERVAL_DEFAULT = 10

Definition at line 9 of file ilLSGlobalSettingsDB.php.

◆ SETTING_POLL_INTERVAL

const ilLSGlobalSettingsDB::SETTING_POLL_INTERVAL = 'lso_polling_interval'

Definition at line 8 of file ilLSGlobalSettingsDB.php.


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