ILIAS  release_8 Revision v8.19
All Data Structures Namespaces Files Functions Variables Modules Pages
LSGlobalSettings Class Reference

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

+ Collaboration diagram for LSGlobalSettings:

Public Member Functions

 __construct (float $polling_interval_seconds)
 
 getPollingIntervalSeconds ()
 
 getPollingIntervalMilliseconds ()
 
 withPollingIntervalSeconds (float $seconds)
 

Protected Attributes

float $polling_interval_seconds
 

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 Global Settings of the Learning Sequence

Definition at line 24 of file LSGlobalSettings.php.

Constructor & Destructor Documentation

◆ __construct()

LSGlobalSettings::__construct ( float  $polling_interval_seconds)

Definition at line 28 of file LSGlobalSettings.php.

References $polling_interval_seconds.

29  {
30  $this->polling_interval_seconds = $polling_interval_seconds;
31  }

Member Function Documentation

◆ getPollingIntervalMilliseconds()

LSGlobalSettings::getPollingIntervalMilliseconds ( )

Definition at line 38 of file LSGlobalSettings.php.

References getPollingIntervalSeconds().

Referenced by GlobalSettingsTest\testIntervalAttribute().

38  : int
39  {
40  $interval = $this->getPollingIntervalSeconds() * 1000;
41  return (int) $interval;
42  }
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ getPollingIntervalSeconds()

LSGlobalSettings::getPollingIntervalSeconds ( )

Definition at line 33 of file LSGlobalSettings.php.

References $polling_interval_seconds.

Referenced by getPollingIntervalMilliseconds(), ilLSGlobalSettingsDB\storeSettings(), and GlobalSettingsTest\testIntervalAttribute().

33  : float
34  {
36  }
+ Here is the caller graph for this function:

◆ withPollingIntervalSeconds()

LSGlobalSettings::withPollingIntervalSeconds ( float  $seconds)

Definition at line 44 of file LSGlobalSettings.php.

Referenced by GlobalSettingsTest\testIntervalAttribute().

45  {
46  $clone = clone $this;
47  $clone->polling_interval_seconds = $seconds;
48  return $clone;
49  }
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
+ Here is the caller graph for this function:

Field Documentation

◆ $polling_interval_seconds

float LSGlobalSettings::$polling_interval_seconds
protected

Definition at line 26 of file LSGlobalSettings.php.

Referenced by __construct(), and getPollingIntervalSeconds().


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