19declare(strict_types=1);
37 RequestServices $request,
40 $this->wrapper = $request->wrapper();
41 $this->post = $request->request()->getParsedBody();
48 return $this->
int(
'user_id');
50 return $this->
int(
'user');
55 return $this->
str(
'back_url');
60 return $this->
str(
'baseClass');
65 return $this->
int(
'prompted');
70 return $this->
int(
'osd_id');
75 return $this->
str(
'f');
80 return $this->
str(
'term');
85 return $this->
str(
'token');
88 private function int(
string $key):
int
95 $transformation = $this->
refinery->kindlyTo()->int();
99 private function str(
string $key): string
102 if ($source ===
'') {
106 $transformation = $this->
refinery->kindlyTo()->string();
125 if ($this->wrapper->post()->has($key)) {
129 if ($this->wrapper->query()->has($key)) {
138 if ($source ===
'query') {
139 return $this->wrapper->query()->retrieve($key, $transformation);
142 return $this->wrapper->post()->retrieve($key, $transformation);
existsInPostOrQuery(string $key)
__construct(RequestServices $request, private Refinery $refinery)
getFromQueryOrPost(string $key, Transformation $transformation, string $source)
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...