ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
class.EditingGUIRequest.php
Go to the documentation of this file.
1<?php
2
20
22
24{
25 use BaseGUIRequest;
26
27 public function __construct(
28 \ILIAS\HTTP\Services $http,
30 ?array $passed_query_params = null,
31 ?array $passed_post_data = null
32 ) {
33 $this->initRequest(
34 $http,
36 $passed_query_params,
37 $passed_post_data
38 );
39 }
40
41 public function getRefId(): int
42 {
43 return $this->int("ref_id");
44 }
45
46 public function getTermId(): int
47 {
48 return $this->int("term_id");
49 }
50
51 public function getTaxNode(): int
52 {
53 return $this->int("tax_node");
54 }
55
56 public function getNewType(): string
57 {
58 return $this->str("new_type");
59 }
60
61 public function getBaseClass(): string
62 {
63 return $this->str("baseClass");
64 }
65
66 public function getGlossaryRefId(): int
67 {
68 $id = $this->int("glo_ref_id");
69 if ($id == 0) {
70 $id = $this->int("root_id");
71 }
72 return $id;
73 }
74
75 public function getSearchRootExpand(): int
76 {
77 return $this->int("search_root_expand");
78 }
79
80 public function getGlossaryIdInModal(): int
81 {
82 return $this->getInterruptiveItemIds()[0];
83 }
84
85 public function getForeignGlossaryRefId(): int
86 {
87 return $this->int("fglo_ref_id");
88 }
89
90 public function getStyleId(): int
91 {
92 return $this->int("style_id");
93 }
94
95 public function getNewTerm(): string
96 {
97 return trim($this->str("new_term"));
98 }
99
100 public function getTermLanguage(): string
101 {
102 return $this->str("term_language");
103 }
104
108 public function getFiles(): array
109 {
110 return $this->strArray("file");
111 }
112
116 public function getIds(): array
117 {
118 return $this->intArray("id");
119 }
120
124 public function getTaxNodes(): array
125 {
126 return $this->intArray("tax_node");
127 }
128
129 public function getSelectedGlossaryRefId(): int
130 {
131 return $this->int("sel_glo_ref_id");
132 }
133
137 public function getInterruptiveItemIds(): array
138 {
139 return $this->intArray("interruptive_items");
140 }
141
142 public function getBulkCreationData(): string
143 {
144 return $this->str("bulk_data");
145 }
146
150 protected function getTableIds(string $key): array
151 {
152 return $this->strArray($key);
153 }
154
155 protected function getTableAction(string $key): string
156 {
157 return $this->str($key);
158 }
159
160 public function getTableGlossaryAutoLinkAction(): string
161 {
162 return $this->getTableAction("glo_auto_link_table_action");
163 }
164
168 public function getTableGlossaryAutoLinkIds(): array
169 {
170 return $this->getTableIds("glo_auto_link_table_glo_ids");
171 }
172
173 public function getTableGlossaryForeignTermAction(): string
174 {
175 return $this->getTableAction("glo_foreign_term_table_action");
176 }
177
181 public function getTableGlossaryForeignTermIds(): array
182 {
183 return $this->getTableIds("glo_foreign_term_table_term_ids");
184 }
185
186 public function getTableGlossaryTermListAction(): string
187 {
188 return $this->getTableAction("glo_term_list_table_action");
189 }
190
194 public function getTableGlossaryTermListIds(): array
195 {
196 return $this->getTableIds("glo_term_list_table_term_ids");
197 }
198
202 public function getTermIdsInModal(): array
203 {
204 return $this->getInterruptiveItemIds();
205 }
206}
$id
plugin.php for ilComponentBuildPluginInfoObjectiveTest::testAddPlugins
Definition: plugin.php:23
Builds a Color from either hex- or rgb values.
Definition: Factory.php:31
__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: deliver.php:30
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.
Interface Observer \BackgroundTasks Contains several chained tasks and infos about them.