ILIAS  release_5-4 Revision v5.4.26-12-gabc799a52e6
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

 $polling_interval_seconds
 

Detailed Description

Global Settings of the Learning Sequence.

Definition at line 6 of file LSGlobalSettings.php.

Constructor & Destructor Documentation

◆ __construct()

LSGlobalSettings::__construct ( float  $polling_interval_seconds)

Definition at line 13 of file LSGlobalSettings.php.

14 {
15 $this->polling_interval_seconds = $polling_interval_seconds;
16 }

References $polling_interval_seconds.

Member Function Documentation

◆ getPollingIntervalMilliseconds()

LSGlobalSettings::getPollingIntervalMilliseconds ( )

Definition at line 23 of file LSGlobalSettings.php.

23 : int
24 {
25 $interval = $this->getPollingIntervalSeconds() * 1000;
26 return (int) $interval;
27 }

References getPollingIntervalSeconds().

Referenced by LSGlobalSettingsTest\testIntervalAttribute().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ getPollingIntervalSeconds()

LSGlobalSettings::getPollingIntervalSeconds ( )

Definition at line 18 of file LSGlobalSettings.php.

18 : float
19 {
21 }

References $polling_interval_seconds.

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

+ Here is the caller graph for this function:

◆ withPollingIntervalSeconds()

LSGlobalSettings::withPollingIntervalSeconds ( float  $seconds)

Definition at line 29 of file LSGlobalSettings.php.

30 {
31 $clone = clone $this;
32 $clone->polling_interval_seconds = $seconds;
33 return $clone;
34 }
Global Settings of the Learning Sequence.

Referenced by LSGlobalSettingsTest\testIntervalAttribute().

+ Here is the caller graph for this function:

Field Documentation

◆ $polling_interval_seconds

LSGlobalSettings::$polling_interval_seconds
protected

Definition at line 11 of file LSGlobalSettings.php.

Referenced by __construct(), and getPollingIntervalSeconds().


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