ILIAS  trunk Revision v11.0_alpha-1761-g6dbbfa7b760
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\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,
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 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 getBackUrl(): string
99  {
100  return trim($this->str("back_url"));
101  }
102 
103  public function getPortfolioPageId(): int
104  {
105  return $this->int("ppage");
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 
123  public function getConsultationHourUserId(): int
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 getRoleTemplateIds(): array
140  {
141  return $this->strArray("role_template_ids");
142  }
143 
145  public function getObjIds(): array
146  {
147  return $this->strArray("obj_id");
148  }
149 
151  public function getOrder(): array
152  {
153  return $this->intArray("order");
154  }
155 
157  public function getTitles(): array
158  {
159  return $this->strArray("title");
160  }
161 
162  public function getStyleId(): int
163  {
164  return $this->int("style_id");
165  }
166 
167  public function getPageType(): string
168  {
169  return $this->str("ptype");
170  }
171 
172  public function getPageTitle(): string
173  {
174  return $this->str("fpage");
175  }
176 
177  public function getPortfolioTitle(): string
178  {
179  return trim($this->str("pt"));
180  }
181 
182  public function getTemplateId(): int
183  {
184  return $this->int("tmpl");
185  }
186 
188  public function getOnline(): array
189  {
190  return $this->strArray("online");
191  }
192 
193  public function getCourseSorting(): string
194  {
195  return $this->str("srt");
196  }
197 
198  public function getPrintSelectedType(): string
199  {
200  return $this->str("sel_type");
201  }
202 
203  public function getPortfolioTemplateId(): int
204  {
205  return $this->int("prtt_pre");
206  }
207 
208  public function getPortfolioTemplate(): int
209  {
210  return $this->int("prtt");
211  }
212 
213  public function getExerciseRefId(): int
214  {
215  return $this->int("exc_id");
216  }
217 
218  public function getOwnerId(): int
219  {
220  return $this->int("owner_id");
221  }
222 
223  public function getSignature(): bool
224  {
225  return (bool) $this->int("signature");
226  }
227 
228  public function getIncludeDeclaration(): bool
229  {
230  return (bool) $this->int("decl_author");
231  }
232 }
Interface Observer Contains several chained tasks and infos about them.
$http
Definition: deliver.php:30
__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...
while($session_entry=$r->fetchRow(ilDBConstants::FETCHMODE_ASSOC)) return 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.