ILIAS  release_8 Revision v8.24
class.ilProfilePromptSettings.php
Go to the documentation of this file.
1<?php
2
24{
25 public const MODE_INCOMPLETE_ONLY = 0;
26 public const MODE_ONCE_AFTER_LOGIN = 1;
27 public const MODE_REPEAT = 2;
28 protected array $prompt_texts; // Missing array type.
29 protected array $info_texts; // Missing array type.
30 protected int $days;
31 protected int $mode;
32
33 public function __construct(int $mode, int $days, array $info_texts, array $promp_texts) // Missing array type.
34 {
35 $this->mode = $mode;
36 $this->days = $days;
37 $this->info_texts = $info_texts;
38 $this->prompt_texts = $promp_texts;
39 }
40
41 public function getDays(): int
42 {
43 return $this->days;
44 }
45
46 public function getMode(): int
47 {
48 return $this->mode;
49 }
50
51 public function getInfoTexts(): array // Missing array type.
52 {
53 return $this->info_texts;
54 }
55
56 public function getPromptTexts(): array // Missing array type.
57 {
59 }
60
61 public function getInfoText(string $lang): string
62 {
63 return $this->info_texts[$lang] ?? "";
64 }
65
66 public function getPromptText(string $lang): string
67 {
68 return $this->prompt_texts[$lang] ?? "";
69 }
70}
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
__construct(int $mode, int $days, array $info_texts, array $promp_texts)
$lang
Definition: xapiexit.php:26