3 declare(strict_types=1);
    51         ?array $passed_query_params = null,
    52         ?array $passed_post_data = null
    63         if ($this->
isArray($key) || $this->
str($key) === 
"") {
    66         $t = $this->
refinery->kindlyTo()->int();
    67         return (
int) ($this->
get(
$key, $t) ?? 0);
    76         $t = $this->
refinery->custom()->transformation(
    81                         static function ($k, $v): array {
    82                             return [$k, (
int) $v];
    92         return (array) ($this->
get(
$key, $t) ?? []);
    95     protected function strip(
string $input): string
    99         if ($str !== $input) {
   111         $t = $this->
refinery->kindlyTo()->string();
   112         return $this->
strip((
string) ($this->
get($key, $t) ?? 
""));
   121         $t = $this->
refinery->custom()->transformation(
   126                         function ($k, $v): array {
   130                             return [$k, $this->
strip((
string) $v)];
   140         return (array) ($this->
get(
$key, $t) ?? []);
   149         $t = $this->
refinery->custom()->transformation(
   154                         static function ($k, $v): array {
   155                             return [$k, (array) $v];
   165         return (array) ($this->
get(
$key, $t) ?? []);
   173         if ($this->passed_query_params === null && $this->passed_post_data === null) {
   174             $no_transform = $this->
refinery->identity();
   175             $w = $this->
http->wrapper();
   176             if ($w->post()->has($key)) {
   177                 return is_array($w->post()->retrieve($key, $no_transform));
   179             if ($w->query()->has($key)) {
   180                 return is_array($w->query()->retrieve($key, $no_transform));
   183         if (isset($this->passed_post_data[$key])) {
   184             return is_array($this->passed_post_data[$key]);
   186         if (isset($this->passed_query_params[$key])) {
   187             return is_array($this->passed_query_params[$key]);
   197         $no_transform = $this->
refinery->identity();
   198         return $this->
get(
$key, $no_transform);
   209     protected function get(
string $key, Refinery\Transformation $t)
   211         if ($this->passed_query_params === null && $this->passed_post_data === null) {
   212             $w = $this->
http->wrapper();
   213             if ($w->post()->has($key)) {
   214                 return $w->post()->retrieve($key, $t);
   216             if ($w->query()->has($key)) {
   217                 return $w->query()->retrieve($key, $t);
   220         if (isset($this->passed_post_data[$key])) {
   221             return $t->transform($this->passed_post_data[$key]);
   223         if (isset($this->passed_query_params[$key])) {
   224             return $t->transform($this->passed_query_params[$key]);
 This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
 
static stripSlashes(string $a_str, bool $a_strip_html=true, string $a_allow="")
 
isArray(string $key)
Check if parameter is an array. 
 
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
 
array $passed_query_params
 
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. 
 
Refinery Factory $refinery