ILIAS  release_8 Revision v8.24
ilLSGlobalSettingsDB Class Reference

This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Learning e.V. 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

This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Learning e.V.

ILIAS is licensed with the GPL-3.0, see https://www.gnu.org/licenses/gpl-3.0.en.html You should have received a copy of said license along with the source code, too.

If this is not the case or you just want to try ILIAS, you'll find us at: https://www.ilias.de https://github.com/ILIAS-eLearning 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 }
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...

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 }
array $settings
Setting values (LTI parameters, custom parameters and local parameters).
Definition: System.php:200

References ILIAS\LTI\ToolProvider\$settings.

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: