ILIAS  trunk Revision v13.0_alpha-52-g21c366bbdd4
class.StandardGUIRequest.php
Go to the documentation of this file.
1<?php
2
19namespace ILIAS\Portfolio;
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,
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 getPortfolioId(): int
47 {
48 $prt_id = $this->int("prt_id");
49 if ($prt_id === 0) {
50 $prt_id = $this->int("prtf");
51 }
52 return $prt_id;
53 }
54
55 public function getPortfolioIds(): array
56 {
57 $ids = $this->intArray("prtfs");
58 if ((count($ids) === 0) && $this->int("prtf") > 0) {
59 $ids = [$this->int("prtf")];
60 }
61 return $ids;
62 }
63
64 public function getBaseClass(): string
65 {
66 return $this->str("baseClass");
67 }
68
69 public function getNewType(): string
70 {
71 return $this->str("new_type");
72 }
73
74 public function getCopyFormProcess(): bool
75 {
76 return (bool) $this->int("cpfl");
77 }
78
79 public function getExcBackRefId(): int
80 {
81 return $this->int("exc_back_ref_id");
82 }
83
84 public function getExcAssId(): int
85 {
86 $ass_id = $this->int("ass");
87 if ($ass_id === 0) {
88 $ass_id = $this->int("ass_id");
89 }
90 return $ass_id;
91 }
92
93 public function getExcFile(): string
94 {
95 return trim($this->str("file"));
96 }
97
98 public function getPortfolioPageId(): int
99 {
100 return $this->int("ppage");
101 }
102
103 public function getEditPageId(): int
104 {
105 return $this->int("edit_id");
106 }
107
108 public function getUserPage(): int
109 {
110 return $this->int("user_page");
111 }
112
114 public function getPortfolioPageIds(): array
115 {
116 $pages = $this->intArray("prtf_pages");
117 if ((count($pages) === 0) && $this->int("prtf_page") > 0) {
118 $pages = [$this->int("prtf_page")];
119 }
120 return $pages;
121 }
122
124 {
125 return $this->int("chuid");
126 }
127
128 public function getCalendarSeed(): string
129 {
130 return $this->str("seed");
131 }
132
133 public function getVerificationId(): int
134 {
135 return $this->int("dlid");
136 }
137
139 public function getObjIds(): array
140 {
141 return $this->strArray("obj_id");
142 }
143
145 public function getOrder(): array
146 {
147 return $this->intArray("order");
148 }
149
151 public function getTitles(): array
152 {
153 return $this->strArray("title");
154 }
155
156 public function getStyleId(): int
157 {
158 return $this->int("style_id");
159 }
160
161 public function getPageType(): string
162 {
163 return $this->str("ptype");
164 }
165
166 public function getPageTitle(): string
167 {
168 return $this->str("fpage");
169 }
170
171 public function getPortfolioTitle(): string
172 {
173 return trim($this->str("pt"));
174 }
175
176 public function getTemplateId(): int
177 {
178 return $this->int("tmpl");
179 }
180
182 public function getOnline(): array
183 {
184 return $this->strArray("online");
185 }
186
187 public function getCourseSorting(): string
188 {
189 return $this->str("srt");
190 }
191
192 public function getPrintSelectedType(): string
193 {
194 return $this->str("sel_type");
195 }
196
197 public function getPortfolioTemplateId(): int
198 {
199 return $this->int("prtt_pre");
200 }
201
202 public function getPortfolioTemplate(): int
203 {
204 return $this->int("prtt");
205 }
206
207 public function getExerciseRefId(): int
208 {
209 return $this->int("exc_id");
210 }
211
212 public function getOwnerId(): int
213 {
214 return $this->int("owner_id");
215 }
216
217 public function getSignature(): bool
218 {
219 return (bool) $this->int("signature");
220 }
221
222 public function getIncludeDeclaration(): bool
223 {
224 return (bool) $this->int("decl_author");
225 }
226}
Class Services.
Definition: Services.php:43
__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.
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.