ILIAS  trunk Revision v11.0_alpha-1715-g7fc467680fb
All Data Structures Namespaces Files Functions Variables Enumerations Enumerator Modules Pages
class.StandardGUIRequest.php
Go to the documentation of this file.
1 <?php
2 
19 namespace ILIAS\BookingManager;
20 
22 
24 {
25  use BaseGUIRequest;
26 
27  public function __construct(
30  ?array $passed_query_params = null,
31  ?array $passed_post_data = null
32  ) {
33  $this->initRequest(
34  $http,
35  $refinery,
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 getPoolRefId(): int
47  {
48  return $this->int("pool_ref_id");
49  }
50 
51  public function getObjectId(): int
52  {
53  return $this->int("object_id");
54  }
55 
56  public function getMessage(): string
57  {
58  return $this->str("message");
59  }
60 
61  public function getUserId(): int
62  {
63  return $this->int("user_id");
64  }
65 
66  public function getBookedUser(): int
67  {
68  return $this->int("bkusr");
69  }
70 
71  public function getScheduleId(): int
72  {
73  return $this->int("schedule_id");
74  }
75 
76  public function getStatus(): int
77  {
78  return $this->int("tstatus");
79  }
80 
81  public function getReservationIdsFromString(): array
82  {
83  if ($this->str("rsv_ids") === "") {
84  return [];
85  }
86  return explode(";", $this->str("rsv_ids"));
87  }
88 
89  public function getReturnTo(): string
90  {
91  return $this->str("return_to");
92  }
93 
94  public function getReservationId(): string
95  {
96  return $this->str("reservation_id");
97  }
98 
99  public function getReservationIds(): array
100  {
101  $ids = $this->strArray("mrsv");
102  if (count($ids) === 0) {
103  $ids = $this->strArray("reservation_id");
104  }
105  if (count($ids) === 0) {
106  $ids = $this->strArray("rsv_id");
107  }
108  return $ids;
109  }
110 
111  public function getSeed(): string
112  {
113  return $this->str("seed");
114  }
115 
116  public function getSSeed(): string
117  {
118  return $this->str("sseed");
119  }
120 
121  public function getNotification(): int
122  {
123  return $this->int("ntf");
124  }
125 
126  public function getParticipants(): array
127  {
128  $p = $this->intArray("mass");
129  if (count($p) === 0) {
130  $p = $this->intArray("participants");
131  }
132  return $p;
133  }
134 
135  public function getDates(): array
136  {
137  $dates = $this->strArray("date");
138  if (count($dates) === 0 && $this->str("date") !== "") {
139  return [$this->str("date")];
140  }
141  return $dates;
142  }
143 
144  public function getDate(): string
145  {
146  return $this->str("date");
147  }
148 
149  public function getRece(): string
150  {
151  return $this->str("rece");
152  }
153 
154  public function getRecm(): string
155  {
156  return $this->str("recm");
157  }
158 
159  public function getUserLogin(): string
160  {
161  return $this->str("user_login");
162  }
163 
164  public function getGroupId(): int
165  {
166  return $this->int("grp_id");
167  }
168 
169  public function getCancelNr($id): int
170  {
171  return $this->int("rsv_id_" . $id);
172  }
173 
174  public function getReplaceSignal(): string
175  {
176  return $this->str("replaceSignal");
177  }
178 
179  public function getReturnCmd(): string
180  {
181  return $this->str("returnCmd");
182  }
183 
184  public function getSlot(): string
185  {
186  return $this->str("slot");
187  }
188 
189  public function getSlotFrom(): int
190  {
191  $slot = $this->getSlot();
192  $parts = explode("_", $slot);
193  return (int) $parts[0];
194  }
195 
196  public function getSlotTo(): int
197  {
198  $slot = $this->getSlot();
199  $parts = explode("_", $slot);
200  return (int) ($parts[1] ?? 0);
201  }
202 
203  public function getRecurrence(): string
204  {
205  return $this->str("recurrence");
206  }
207 
208  public function getNr(): int
209  {
210  return $this->int("nr");
211  }
212 
213  public function getUntil(): int
214  {
215  return $this->int("until");
216  }
217 
218  public function getObjectIds(): array
219  {
220  return $this->intArray("object_id");
221  }
222 
223  public function getBulkCreationData(): string
224  {
225  return $this->str("data");
226  }
227 
228 }
if($clientAssertionType !='urn:ietf:params:oauth:client-assertion-type:jwt-bearer'|| $grantType !='client_credentials') $parts
Definition: ltitoken.php:61
Interface Observer Contains several chained tasks and infos about them.
$http
Definition: deliver.php:30
trait BaseGUIRequest
Base gui request wrapper.
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
while($session_entry=$r->fetchRow(ilDBConstants::FETCHMODE_ASSOC)) return null
__construct(\ILIAS\HTTP\Services $http, \ILIAS\Refinery\Factory $refinery, ?array $passed_query_params=null, ?array $passed_post_data=null)
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.
Builds data types.
Definition: Factory.php:35
$id
plugin.php for ilComponentBuildPluginInfoObjectiveTest::testAddPlugins
Definition: plugin.php:23