ILIAS  release_7 Revision v7.30-3-g800a261c036
ilProfilePromptSettings Class Reference

Profile prompt settings. More...

+ Collaboration diagram for ilProfilePromptSettings:

Public Member Functions

 __construct (int $mode, int $days, array $info_texts, array $promp_texts)
 Constructor. More...
 
 getDays ()
 
 getMode ()
 
 getInfoTexts ()
 
 getPromptTexts ()
 
 getInfoText ($lang)
 
 getPromptText ($lang)
 

Data Fields

const MODE_INCOMPLETE_ONLY = 0
 
const MODE_ONCE_AFTER_LOGIN = 1
 
const MODE_REPEAT = 2
 

Detailed Description

Profile prompt settings.

Author
killi.nosp@m.ng@l.nosp@m.eifos.nosp@m..de

Definition at line 11 of file class.ilProfilePromptSettings.php.

Constructor & Destructor Documentation

◆ __construct()

ilProfilePromptSettings::__construct ( int  $mode,
int  $days,
array  $info_texts,
array  $promp_texts 
)

Constructor.

Parameters
int$mode
int$days

Definition at line 22 of file class.ilProfilePromptSettings.php.

23 {
24 $this->mode = $mode;
25 $this->days = $days;
26 $this->info_texts = $info_texts;
27 $this->prompt_texts = $promp_texts;
28 }

Member Function Documentation

◆ getDays()

ilProfilePromptSettings::getDays ( )
Returns
int

Definition at line 33 of file class.ilProfilePromptSettings.php.

34 {
35 return $this->days;
36 }

Referenced by ilUserProfilePromptDataGateway\saveSettings().

+ Here is the caller graph for this function:

◆ getInfoText()

ilProfilePromptSettings::getInfoText (   $lang)
Returns
string

Definition at line 65 of file class.ilProfilePromptSettings.php.

66 {
67 if (isset($this->info_texts[$lang])) {
68 return $this->info_texts[$lang];
69 }
70 return "";
71 }
$lang
Definition: xapiexit.php:8

References $lang.

◆ getInfoTexts()

ilProfilePromptSettings::getInfoTexts ( )
Returns
array

Definition at line 49 of file class.ilProfilePromptSettings.php.

50 {
51 return $this->info_texts;
52 }

Referenced by ilUserProfilePromptDataGateway\saveSettings().

+ Here is the caller graph for this function:

◆ getMode()

ilProfilePromptSettings::getMode ( )
Returns
int

Definition at line 41 of file class.ilProfilePromptSettings.php.

42 {
43 return $this->mode;
44 }

Referenced by ilUserProfilePromptDataGateway\saveSettings().

+ Here is the caller graph for this function:

◆ getPromptText()

ilProfilePromptSettings::getPromptText (   $lang)
Returns
string

Definition at line 76 of file class.ilProfilePromptSettings.php.

77 {
78 if (isset($this->prompt_texts[$lang])) {
79 return $this->prompt_texts[$lang];
80 }
81 return "";
82 }

References $lang.

◆ getPromptTexts()

ilProfilePromptSettings::getPromptTexts ( )
Returns
array

Definition at line 57 of file class.ilProfilePromptSettings.php.

58 {
59 return $this->prompt_texts;
60 }

Referenced by ilUserProfilePromptDataGateway\saveSettings().

+ Here is the caller graph for this function:

Field Documentation

◆ MODE_INCOMPLETE_ONLY

const ilProfilePromptSettings::MODE_INCOMPLETE_ONLY = 0

◆ MODE_ONCE_AFTER_LOGIN

const ilProfilePromptSettings::MODE_ONCE_AFTER_LOGIN = 1

◆ MODE_REPEAT

const ilProfilePromptSettings::MODE_REPEAT = 2

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