ILIAS  release_8 Revision v8.24
ilProfilePromptSettings 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 ilProfilePromptSettings:

Public Member Functions

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

Data Fields

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

Protected Attributes

array $prompt_texts
 
array $info_texts
 
int $days
 
int $mode
 

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 Profile prompt settings

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

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

Constructor & Destructor Documentation

◆ __construct()

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

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

34 {
35 $this->mode = $mode;
36 $this->days = $days;
37 $this->info_texts = $info_texts;
38 $this->prompt_texts = $promp_texts;
39 }

References $days, $info_texts, and $mode.

Member Function Documentation

◆ getDays()

ilProfilePromptSettings::getDays ( )

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

41 : int
42 {
43 return $this->days;
44 }

References $days.

Referenced by ilUserProfileInfoSettingsGUI\initForm().

+ Here is the caller graph for this function:

◆ getInfoText()

ilProfilePromptSettings::getInfoText ( string  $lang)

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

61 : string
62 {
63 return $this->info_texts[$lang] ?? "";
64 }
$lang
Definition: xapiexit.php:26

References $lang.

Referenced by ilUserProfileInfoSettingsGUI\initForm().

+ Here is the caller graph for this function:

◆ getInfoTexts()

ilProfilePromptSettings::getInfoTexts ( )

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

51 : array // Missing array type.
52 {
53 return $this->info_texts;
54 }

References $info_texts.

◆ getMode()

ilProfilePromptSettings::getMode ( )

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

46 : int
47 {
48 return $this->mode;
49 }

References $mode.

Referenced by ilUserProfileInfoSettingsGUI\initForm().

+ Here is the caller graph for this function:

◆ getPromptText()

ilProfilePromptSettings::getPromptText ( string  $lang)

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

66 : string
67 {
68 return $this->prompt_texts[$lang] ?? "";
69 }

References $lang.

Referenced by ilUserProfileInfoSettingsGUI\initForm().

+ Here is the caller graph for this function:

◆ getPromptTexts()

ilProfilePromptSettings::getPromptTexts ( )

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

56 : array // Missing array type.
57 {
59 }

References $prompt_texts.

Field Documentation

◆ $days

int ilProfilePromptSettings::$days
protected

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

Referenced by __construct(), and getDays().

◆ $info_texts

array ilProfilePromptSettings::$info_texts
protected

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

Referenced by __construct(), and getInfoTexts().

◆ $mode

int ilProfilePromptSettings::$mode
protected

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

Referenced by __construct(), and getMode().

◆ $prompt_texts

array ilProfilePromptSettings::$prompt_texts
protected

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

Referenced by getPromptTexts().

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