ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
ilLSGlobalSettingsDB.php
Go to the documentation of this file.
1<?php
2
19declare(strict_types=1);
20
25{
26 public const SETTING_POLL_INTERVAL = 'lso_polling_interval';
27 public const POLL_INTERVAL_DEFAULT = 10; //in seconds
28
30
32 {
33 $this->il_settings = $il_settings;
34 }
35
36 public function getSettings(): LSGlobalSettings
37 {
38 $interval_seconds = (float) $this->il_settings->get(
39 self::SETTING_POLL_INTERVAL,
41 );
42
43 return new LSGlobalSettings($interval_seconds);
44 }
45
46 public function storeSettings(LSGlobalSettings $settings): void
47 {
48 $this->il_settings->set(
49 self::SETTING_POLL_INTERVAL,
50 (string) $settings->getPollingIntervalSeconds()
51 );
52 }
53}
Global Settings of the Learning Sequence.
Repository for LSGlobalSettings over ILIAS global settings.
storeSettings(LSGlobalSettings $settings)
__construct(\ilSetting $il_settings)
ILIAS Setting Class.
Repository for LSGlobalSettings.