ILIAS  release_8 Revision v8.19
All Data Structures Namespaces Files Functions Variables Modules Pages
class.EditingGUIRequest.php
Go to the documentation of this file.
1 <?php
2 
20 
22 use ilArrayUtil;
23 
28 {
29  use BaseGUIRequest;
30 
31  protected array $params;
32 
33  public function __construct(
36  ?array $passed_query_params = null,
37  ?array $passed_post_data = null
38  ) {
39  $this->initRequest(
40  $http,
41  $refinery,
44  );
45  }
46 
47  public function getRefId(): int
48  {
49  return $this->int("ref_id");
50  }
51 
52  public function getQuestionId(): int
53  {
54  return $this->int("q_id");
55  }
56 
58  public function getQuestionIds(): array
59  {
60  $ids = $this->intArray("q_id");
61  if (count($ids) === 0) {
62  $ids = $this->intArray("qid"); // this one is used in SurveyQuestionGUI
63  }
64  return $ids;
65  }
66 
67  public function getPreview(): int
68  {
69  return $this->int("preview");
70  }
71 
72  public function getSelectedQuestionTypes(): string
73  {
74  return $this->str("sel_question_types");
75  }
76 
77  public function getBaseClass(): string
78  {
79  return $this->str("baseClass");
80  }
81 
83  public function getSort(): array
84  {
85  return $this->strArray("sort");
86  }
87 
88 
89  public function getPhraseId(): int
90  {
91  return $this->int("p_id");
92  }
93 
94  public function getPhraseIds(): array
95  {
96  return $this->intArray("phrase");
97  }
98 
99  public function getPhraseTitle(): string
100  {
101  return $this->str("phrase_title");
102  }
103 
104 
105  public function getAnswers(): array
106  {
107  $ans = $this->arrayArray("answers");
109  }
110 
111  public function getColumns(): array
112  {
113  $ans = $this->arrayArray("columns");
115  }
116 
117  public function getRows(): array
118  {
119  $ans = $this->arrayArray("rows");
121  }
122 
123  public function getNeutralScale(): string
124  {
125  return $this->str("answers_neutral_scale");
126  }
127 
128  public function getNeutral(): string
129  {
130  $ans = $this->strArray("answers");
131  return $ans["neutral"];
132  }
133 
134  public function getColumnNeutralScale(): string
135  {
136  return $this->str("columns_neutral_scale");
137  }
138 
139  public function getNewLinkType(): string
140  {
141  return $this->str("internalLinkType");
142  }
143 
144  public function getNewForSurvey(): int
145  {
146  return $this->int("new_for_survey");
147  }
148 
149  public function getNewType(): string
150  {
151  return $this->str("new_type");
152  }
153 
154  public function getLinkSourceId(): int
155  {
156  return $this->int("source_id");
157  }
158 
159  public function getLinkItemId($type): int
160  {
161  return $this->int($type);
162  }
163 
164  public function getReturn(): bool
165  {
166  return (bool) $this->int("rtrn");
167  }
168 
170  public function getFiles(): array
171  {
172  return $this->strArray("file");
173  }
174 
175  public function getMaterialIndexes(): array
176  {
177  return $this->intArray("idx");
178  }
179 
180  public function getPercentRow(): int
181  {
182  return $this->int("percent_row");
183  }
184 
185  public function getPercentColumns(): int
186  {
187  return $this->int("percent_columns");
188  }
189 
190  public function getPercentBipAdj1(): int
191  {
192  return $this->int("percent_bipolar_adjective1");
193  }
194 
195  public function getPercentBipAdj2(): int
196  {
197  return $this->int("percent_bipolar_adjective2");
198  }
199 
200  public function getPercentNeutral(): int
201  {
202  return $this->int("percent_neutral");
203  }
204 
205  public function getObligatory(): array
206  {
207  return $this->intArray("obligatory");
208  }
209 }
static stripSlashesRecursive($a_data, bool $a_strip_html=true, string $a_allow="")
$type
Class ChatMainBarProvider .
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
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.
__construct(\ILIAS\HTTP\Services $http, \ILIAS\Refinery\Factory $refinery, ?array $passed_query_params=null, ?array $passed_post_data=null)
trait BaseGUIRequest
Base gui request wrapper.
$http
Definition: raiseError.php:7
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
Refinery Factory $refinery