ILIAS  release_8 Revision v8.24
ILIAS\HTTP\Wrapper\ArrayBasedRequestWrapper Class Reference

Class ArrayBasedRequestWrapper. More...

+ Inheritance diagram for ILIAS\HTTP\Wrapper\ArrayBasedRequestWrapper:
+ Collaboration diagram for ILIAS\HTTP\Wrapper\ArrayBasedRequestWrapper:

Public Member Functions

 __construct (array $raw_values)
 GetRequestWrapper constructor. More...
 
 retrieve (string $key, Transformation $transformation)
 @inheritDoc More...
 
 has (string $key)
 @inheritDoc More...
 
 retrieve (string $key, Transformation $transformation)
 
 has (string $key)
 

Private Attributes

array $raw_values
 

Detailed Description

Constructor & Destructor Documentation

◆ __construct()

ILIAS\HTTP\Wrapper\ArrayBasedRequestWrapper::__construct ( array  $raw_values)

GetRequestWrapper constructor.

Parameters
mixed[]$raw_values

Definition at line 39 of file ArrayBasedRequestWrapper.php.

40 {
41 $this->raw_values = $raw_values;
42 }

References ILIAS\HTTP\Wrapper\ArrayBasedRequestWrapper\$raw_values.

Member Function Documentation

◆ has()

ILIAS\HTTP\Wrapper\ArrayBasedRequestWrapper::has ( string  $key)

@inheritDoc

Implements ILIAS\HTTP\Wrapper\RequestWrapper.

Definition at line 57 of file ArrayBasedRequestWrapper.php.

57 : bool
58 {
59 return isset($this->raw_values[$key]);
60 }
string $key
Consumer key/client ID value.
Definition: System.php:193

References ILIAS\LTI\ToolProvider\$key.

◆ retrieve()

ILIAS\HTTP\Wrapper\ArrayBasedRequestWrapper::retrieve ( string  $key,
Transformation  $transformation 
)

@inheritDoc

Implements ILIAS\HTTP\Wrapper\RequestWrapper.

Definition at line 48 of file ArrayBasedRequestWrapper.php.

49 {
50 return $transformation->transform($this->raw_values[$key] ?? null);
51 }
transform($from)
Perform the transformation.

References ILIAS\LTI\ToolProvider\$key, and ILIAS\Refinery\Transformation\transform().

+ Here is the call graph for this function:

Field Documentation

◆ $raw_values

array ILIAS\HTTP\Wrapper\ArrayBasedRequestWrapper::$raw_values
private

The documentation for this class was generated from the following file: