ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
class.EditingGUIRequest.php
Go to the documentation of this file.
1<?php
2
20
22
27{
28 use BaseGUIRequest;
29
30 protected array $params;
31
32 public function __construct(
33 \ILIAS\HTTP\Services $http,
35 ) {
36 $this->initRequest(
37 $http,
39 );
40 }
41
42 public function getRefId(): int
43 {
44 return $this->int("ref_id");
45 }
46
47 public function getSelectedQuestionTypes(): string
48 {
49 return $this->str("sel_question_types");
50 }
51
52 public function getNewId(): int
53 {
54 return $this->int("new_id");
55 }
56
57 public function getNewType(): string
58 {
59 return $this->str("new_type");
60 }
61
62 public function getFetchAll(): int
63 {
64 return $this->int("fetchall");
65 }
66
67 public function getTerm(): string
68 {
69 return $this->str("term");
70 }
71
73 public function getIds(): array
74 {
75 return $this->strArray("id");
76 }
77
79 public function getUserIds(): array
80 {
81 return $this->strArray("chbUser");
82 }
83
85 public function getAppraiseeIds(): array
86 {
87 return $this->intArray("appr_id");
88 }
89
90 public function getAppraiseeId(): int
91 {
92 return $this->int("appr_id");
93 }
94
95 public function getAppr360(): int
96 {
97 return $this->int("appr360");
98 }
99
100 public function getRate360(): int
101 {
102 return $this->int("rate360");
103 }
104
106 public function getCodes(): array
107 {
108 return $this->strArray("chb_code");
109 }
110
112 public function getCodesPar($key): array
113 {
114 return $this->strArray("chb_" . $key);
115 }
116
117 public function getCodeMailPart($key): string
118 {
119 return $this->str("m_" . $key);
120 }
121
122 public function getExternalText(): string
123 {
124 return $this->str("externaltext");
125 }
126
127 public function getSaveMessageTitle(): string
128 {
129 return $this->str("savemessagetitle");
130 }
131
132 public function getSaveMessage(): int
133 {
134 return $this->int("savemessage");
135 }
136
137 public function getPoolUsage(): int
138 {
139 return $this->int("usage");
140 }
141
142 public function getLang(): string
143 {
144 return $this->str("lang");
145 }
146
147 public function getNrOfCodes(): int
148 {
149 return $this->int("nrOfCodes");
150 }
151
153 public function getOrder(): array
154 {
155 return $this->strArray("order");
156 }
157
159 public function getBlockOrder(): array
160 {
161 return $this->arrayArray("block_order");
162 }
163
165 public function getObligatory(): array
166 {
167 return $this->intArray("obligatory");
168 }
169
170 public function getQuestionIdsFromString(): array
171 {
172 return explode(";", $this->str("question_ids"));
173 }
174
175 public function getSelectedPool(): int
176 {
177 return $this->int("sel_spl");
178 }
179
180 public function getDataType(): int
181 {
182 return $this->int("datatype");
183 }
184
186 public function getQuestionIds(): array
187 {
188 $qids = $this->intArray("q_id");
189 if (count($qids) === 0) {
190 $qids = $this->intArray("qids");
191 }
192 return $qids;
193 }
194
195 public function getQuestionId(): int
196 {
197 if (!$this->isArray("q_id")) {
198 return $this->int("q_id");
199 }
200 return 0;
201 }
202
203 public function getBlockId(): int
204 {
205 return $this->int("bl_id");
206 }
207
208 // e.g. ilObjSurvey::PRINT_HIDE_LABELS
209 public function getExportLabel(): int
210 {
211 return $this->int("export_label");
212 }
213
214 public function getPoolName(): string
215 {
216 return $this->str("name_spl");
217 }
218
220 public function getBlockIds(): array
221 {
222 return $this->intArray("cb");
223 }
224
225 public function getQuestionType(): int
226 {
227 return $this->int("qtype");
228 }
229
230 // this is set in the "create new question" dialog
231 // and sets the page target position, "fst", "1" (after first page), "2", ...
232 public function getTargetPosition(): string
233 {
234 return $this->str("pgov");
235 }
236
237 // e.g. set when adding questions from pool
238 // "2a" (after question id "2"), "3b" (before question id "3")
239 public function getTargetQuestionPosition(): string
240 {
241 return $this->str("pgov_pos");
242 }
243
245 public function getHeadings(): array
246 {
247 return $this->intArray("heading");
248 }
249
250 public function getPage(): int
251 {
252 return $this->int("pg");
253 }
254
255 public function getNewForSurvey(): int
256 {
257 return $this->int("new_for_survey");
258 }
259
260 public function getHForm($key): string
261 {
262 return $this->str("il_hform_" . $key);
263 }
264
265 public function getJump(): string
266 {
267 return $this->str("jump");
268 }
269
270 public function getCheckSum(): string
271 {
272 return $this->str("csum");
273 }
274
275 public function getOldPosition(): int
276 {
277 return $this->int("old_pos");
278 }
279
280 public function getCodeIds(): array
281 {
282 $ids = $this->str("new_ids");
283 if ($ids !== "") {
284 $ids = explode(";", $ids);
285 } else {
286 $ids = $this->strArray("chb_code");
287 }
288 return $ids;
289 }
290
291 public function getRaterIds(): array
292 {
293 $ids = $this->str("rater_id");
294 if ($ids !== "") {
295 $ids = explode(";", $ids);
296 } else {
297 $ids = $this->strArray("rtr_id");
298 }
299 return $ids;
300 }
301
302 public function getRaterId(): string
303 {
304 return $this->str("rater_id");
305 }
306
307 public function getRecipients(): string
308 {
309 return $this->str("recipients");
310 }
311
312 public function getMail(): string
313 {
314 return $this->str("mail");
315 }
316
317 public function getBaseClass(): string
318 {
319 return $this->str("baseClass");
320 }
321
322 public function getReturnedFromMail(): int
323 {
324 return $this->int("returned_from_mail");
325 }
326
327 public function getUseAnonymousId(): int
328 {
329 return $this->int("use_anonymous_id");
330 }
331
332 // constraint related...
333
334 public function getStep(): int
335 {
336 return $this->int("step");
337 }
338
339 public function getStart(): int
340 {
341 return $this->int("start");
342 }
343
344 public function getPrecondition(): string
345 {
346 return $this->str("precondition");
347 }
348
349 public function getConstraintPar($key): string
350 {
351 return $this->str($key);
352 }
353
354 public function getIncludeElements(): array
355 {
356 return $this->strArray("includeElements");
357 }
358
359 // skill related
360
361 public function getObjId(): int
362 {
363 return $this->int("obj_id");
364 }
365
366 public function getSelectedSkill(): string
367 {
368 return $this->str("selected_skill");
369 }
370
371 public function getSkillId(): int
372 {
373 return $this->int("sk_id");
374 }
375
376 public function getTrefId(): int
377 {
378 return $this->int("tref_id");
379 }
380
381 public function getSkill(): string
382 {
383 return $this->str("skill");
384 }
385
386 public function getThresholds(): array
387 {
388 return $this->strArray("threshold");
389 }
390
391 public function getPrintSelection(): string
392 {
393 return $this->str("print_selection");
394 }
395
396 public function getIncludeLables(): bool
397 {
398 return (bool) (int) $this->str("include_labels");
399 }
400}
Builds a Color from either hex- or rgb values.
Definition: Factory.php:31
trait BaseGUIRequest
Base gui request wrapper.
__construct(\ILIAS\HTTP\Services $http, \ILIAS\Refinery\Factory $refinery)
$http
Definition: deliver.php:30
isArray(string $key)
Check if parameter is an array.
initRequest(HTTP\Services $http, Refinery\Factory $refinery, ?array $passed_query_params=null, ?array $passed_post_data=null)
Query params and post data parameters are used for testing.
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
Interface Observer \BackgroundTasks Contains several chained tasks and infos about them.