Bitrix-D7 23.9
 
Загрузка...
Поиск...
Не найдено
viewspecsettings.php
1<?php
2
4
6{
7
11 private $showTimer = true;
12
16 private $showTitle = true;
17
21 private $showInstructions = true;
22
26 private $showFullscreen = true;
27
31 private $showSubmit = true;
32
36 private $showSkip = true;
37
41 private $showFinish = true;
42
46 private $showMessage = true;
47
51 public function isShowTimer(): bool
52 {
53 return $this->showTimer;
54 }
55
61 public function setShowTimer(bool $showTimer): ViewSpecSettings
62 {
63 $this->showTimer = $showTimer;
64
65 return $this;
66 }
67
71 public function isShowTitle(): bool
72 {
73 return $this->showTitle;
74 }
75
81 public function setShowTitle(bool $showTitle): ViewSpecSettings
82 {
83 $this->showTitle = $showTitle;
84
85 return $this;
86 }
87
91 public function isShowInstructions(): bool
92 {
93 return $this->showInstructions;
94 }
95
101 public function setShowInstructions(bool $showInstructions): ViewSpecSettings
102 {
103 $this->showInstructions = $showInstructions;
104
105 return $this;
106 }
107
111 public function isShowFullscreen(): bool
112 {
113 return $this->showFullscreen;
114 }
115
121 public function setShowFullscreen(bool $showFullscreen): ViewSpecSettings
122 {
123 $this->showFullscreen = $showFullscreen;
124
125 return $this;
126 }
127
131 public function isShowSubmit(): bool
132 {
133 return $this->showSubmit;
134 }
135
141 public function setShowSubmit(bool $showSubmit): ViewSpecSettings
142 {
143 $this->showSubmit = $showSubmit;
144
145 return $this;
146 }
147
151 public function isShowSkip(): bool
152 {
153 return $this->showSkip;
154 }
155
161 public function setShowSkip(bool $showSkip): ViewSpecSettings
162 {
163 $this->showSkip = $showSkip;
164
165 return $this;
166 }
167
171 public function isShowFinish(): bool
172 {
173 return $this->showFinish;
174 }
175
181 public function setShowFinish(bool $showFinish): ViewSpecSettings
182 {
183 $this->showFinish = $showFinish;
184
185 return $this;
186 }
187
191 public function isShowMessage(): bool
192 {
193 return $this->showMessage;
194 }
195
201 public function setShowMessage(bool $showMessage): ViewSpecSettings
202 {
203 $this->showMessage = $showMessage;
204
205 return $this;
206 }
207
208 public function toArray():array
209 {
210 return [
211 'show_timer' => $this->showTimer,
212 'show_title' => $this->showTitle,
213 'show_instructions' => $this->showInstructions,
214 'show_fullscreen' => $this->showFullscreen,
215 'show_submit' => $this->showSubmit,
216 'show_skip' => $this->showSkip,
217 'show_finish' => $this->showFinish,
218 'show_message' => $this->showMessage,
219 ];
220 }
221}