ILIAS  release_8 Revision v8.24
ilLSGlobalSettingsDB.php
Go to the documentation of this file.
1<?php
2
3declare(strict_types=1);
4
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
47 {
48 $this->il_settings->set(
49 self::SETTING_POLL_INTERVAL,
50 (string) $settings->getPollingIntervalSeconds()
51 );
52 }
53}
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
storeSettings(LSGlobalSettings $settings)
__construct(\ilSetting $il_settings)
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
array $settings
Setting values (LTI parameters, custom parameters and local parameters).
Definition: System.php:200