ILIAS  release_8 Revision v8.24
class.StandardGUIRequest.php
Go to the documentation of this file.
1<?php
2
19namespace ILIAS\BookingManager;
20
22
24{
26
27 public function __construct(
28 \ILIAS\HTTP\Services $http,
29 \ILIAS\Refinery\Factory $refinery,
30 ?array $passed_query_params = null,
31 ?array $passed_post_data = null
32 ) {
33 $this->initRequest(
34 $http,
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 getUserId(): int
57 {
58 return $this->int("user_id");
59 }
60
61 public function getBookedUser(): int
62 {
63 return $this->int("bkusr");
64 }
65
66 public function getScheduleId(): int
67 {
68 return $this->int("schedule_id");
69 }
70
71 public function getStatus(): int
72 {
73 return $this->int("tstatus");
74 }
75
76 public function getReservationIdsFromString(): array
77 {
78 if ($this->str("rsv_ids") === "") {
79 return [];
80 }
81 return explode(";", $this->str("rsv_ids"));
82 }
83
84 public function getReturnTo(): string
85 {
86 return $this->str("return_to");
87 }
88
89 public function getReservationId(): string
90 {
91 return $this->str("reservation_id");
92 }
93
94 public function getReservationIds(): array
95 {
96 $ids = $this->strArray("mrsv");
97 if (count($ids) === 0) {
98 $ids = $this->strArray("reservation_id");
99 }
100 if (count($ids) === 0) {
101 $ids = $this->strArray("rsv_id");
102 }
103 return $ids;
104 }
105
106 public function getSeed(): string
107 {
108 return $this->str("seed");
109 }
110
111 public function getSSeed(): string
112 {
113 return $this->str("sseed");
114 }
115
116 public function getNotification(): int
117 {
118 return $this->int("ntf");
119 }
120
121 public function getParticipants(): array
122 {
123 $p = $this->intArray("mass");
124 if (count($p) === 0) {
125 $p = $this->intArray("participants");
126 }
127 return $p;
128 }
129
130 public function getDates(): array
131 {
132 return $this->strArray("date");
133 }
134
135 public function getRece(): string
136 {
137 return $this->str("rece");
138 }
139
140 public function getRecm(): string
141 {
142 return $this->str("recm");
143 }
144
145 public function getUserLogin(): string
146 {
147 return $this->str("user_login");
148 }
149
150 public function getGroupId(): int
151 {
152 return $this->int("grp_id");
153 }
154
155 public function getCancelNr($id): int
156 {
157 return $this->int("rsv_id_" . $id);
158 }
159}
$id
plugin.php for ilComponentBuildPluginInfoObjectiveTest::testAddPlugins
Definition: plugin.php:23
__construct(\ILIAS\HTTP\Services $http, \ILIAS\Refinery\Factory $refinery, ?array $passed_query_params=null, ?array $passed_post_data=null)
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
Refinery Factory $refinery
trait BaseGUIRequest
Base gui request wrapper.
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.
Class ChatMainBarProvider \MainMenu\Provider.
$http
Definition: raiseError.php:7