ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
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.

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

References $polling_interval_seconds.

Member Function Documentation

◆ getPollingIntervalMilliseconds()

LSGlobalSettings::getPollingIntervalMilliseconds ( )

Definition at line 38 of file LSGlobalSettings.php.

38 : int
39 {
40 $interval = $this->getPollingIntervalSeconds() * 1000;
41 return (int) $interval;
42 }

References getPollingIntervalSeconds().

Referenced by GlobalSettingsTest\testIntervalAttribute().

+ 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.

33 : float
34 {
36 }

References $polling_interval_seconds.

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

+ Here is the caller graph for this function:

◆ withPollingIntervalSeconds()

LSGlobalSettings::withPollingIntervalSeconds ( float  $seconds)

Definition at line 44 of file LSGlobalSettings.php.

45 {
46 $clone = clone $this;
47 $clone->polling_interval_seconds = $seconds;
48 return $clone;
49 }
Global Settings of the Learning Sequence.

Referenced by GlobalSettingsTest\testIntervalAttribute().

+ 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: