ILIAS  release_7 Revision v7.30-3-g800a261c036
class.ilProfilePromptSettings.php
Go to the documentation of this file.
1<?php
2
3/* Copyright (c) 1998-2018 ILIAS open source, Extended GPL, see docs/LICENSE */
4
12{
15 const MODE_REPEAT = 2;
16
22 public function __construct(int $mode, int $days, array $info_texts, array $promp_texts)
23 {
24 $this->mode = $mode;
25 $this->days = $days;
26 $this->info_texts = $info_texts;
27 $this->prompt_texts = $promp_texts;
28 }
29
33 public function getDays()
34 {
35 return $this->days;
36 }
37
41 public function getMode()
42 {
43 return $this->mode;
44 }
45
49 public function getInfoTexts()
50 {
51 return $this->info_texts;
52 }
53
57 public function getPromptTexts()
58 {
59 return $this->prompt_texts;
60 }
61
65 public function getInfoText($lang)
66 {
67 if (isset($this->info_texts[$lang])) {
68 return $this->info_texts[$lang];
69 }
70 return "";
71 }
72
76 public function getPromptText($lang)
77 {
78 if (isset($this->prompt_texts[$lang])) {
79 return $this->prompt_texts[$lang];
80 }
81 return "";
82 }
83}
An exception for terminatinating execution or to throw for unit testing.
__construct(int $mode, int $days, array $info_texts, array $promp_texts)
Constructor.
$lang
Definition: xapiexit.php:8