ILIAS  trunk Revision v11.0_alpha-1811-gd2d5443e411
All Data Structures Namespaces Files Functions Variables Enumerations Enumerator Modules Pages
LSGlobalSettings Class Reference

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

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  }
Global Settings of the Learning Sequence.
+ 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: