ILIAS  release_9 Revision v9.13-25-g2c18ec4c24f
ILIAS\Test\InternalRequestService Class Reference
+ Collaboration diagram for ILIAS\Test\InternalRequestService:

Public Member Functions

 __construct (\ILIAS\HTTP\Services $http, \ILIAS\Refinery\Factory $refinery)
 
 isset (string $key)
 
 hasRefId ()
 
 getRefId ()
 
 getIds ()
 
 hasQuestionId ()
 
 getQuestionId ()
 
 getQuestionIds ()
 
 getCallingTest ()
 
 getNextCommand ()
 
 getActiveId ()
 
 getPassId ()
 
 raw (string $key)
 
 strVal (string $key)
 
 getParsedBody ()
 

Protected Attributes

ILIAS HTTP Services $http
 
array $params
 

Detailed Description

Definition at line 25 of file class.InternalRequestService.php.

Constructor & Destructor Documentation

◆ __construct()

ILIAS\Test\InternalRequestService::__construct ( \ILIAS\HTTP\Services  $http,
\ILIAS\Refinery\Factory  $refinery 
)

Definition at line 32 of file class.InternalRequestService.php.

References ILIAS\Repository\initRequest().

35  {
36  $this->initRequest(
37  $http,
38  $refinery
39  );
40  }
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
+ Here is the call graph for this function:

Member Function Documentation

◆ getActiveId()

ILIAS\Test\InternalRequestService::getActiveId ( )

Definition at line 88 of file class.InternalRequestService.php.

References ILIAS\Repository\int().

88  : int
89  {
90  return $this->int('active_id');
91  }
+ Here is the call graph for this function:

◆ getCallingTest()

ILIAS\Test\InternalRequestService::getCallingTest ( )

Definition at line 78 of file class.InternalRequestService.php.

References ILIAS\Repository\int().

78  : int
79  {
80  return $this->int('calling_test');
81  }
+ Here is the call graph for this function:

◆ getIds()

ILIAS\Test\InternalRequestService::getIds ( )
Returns
string[]

Definition at line 58 of file class.InternalRequestService.php.

References ILIAS\Repository\strArray().

58  : array
59  {
60  return $this->strArray("id");
61  }
+ Here is the call graph for this function:

◆ getNextCommand()

ILIAS\Test\InternalRequestService::getNextCommand ( )

Definition at line 83 of file class.InternalRequestService.php.

References ILIAS\Repository\str().

83  : string
84  {
85  return $this->str('nextCommand');
86  }
+ Here is the call graph for this function:

◆ getParsedBody()

ILIAS\Test\InternalRequestService::getParsedBody ( )

Definition at line 112 of file class.InternalRequestService.php.

References ILIAS\FileDelivery\http().

112  : ?array
113  {
114  return $this->http->request()->getParsedBody();
115  }
static http()
Fetches the global http state from ILIAS.
+ Here is the call graph for this function:

◆ getPassId()

ILIAS\Test\InternalRequestService::getPassId ( )

Definition at line 93 of file class.InternalRequestService.php.

References ILIAS\Repository\int().

93  : int
94  {
95  return $this->int('pass_id');
96  }
+ Here is the call graph for this function:

◆ getQuestionId()

ILIAS\Test\InternalRequestService::getQuestionId ( )

Definition at line 68 of file class.InternalRequestService.php.

References ILIAS\Repository\int().

68  : int
69  {
70  return $this->int('q_id');
71  }
+ Here is the call graph for this function:

◆ getQuestionIds()

ILIAS\Test\InternalRequestService::getQuestionIds ( )

Definition at line 73 of file class.InternalRequestService.php.

References ILIAS\Repository\intArray().

73  : array
74  {
75  return $this->intArray('q_id');
76  }
+ Here is the call graph for this function:

◆ getRefId()

ILIAS\Test\InternalRequestService::getRefId ( )

Definition at line 52 of file class.InternalRequestService.php.

References ILIAS\Repository\int().

52  : int
53  {
54  return $this->int("ref_id");
55  }
+ Here is the call graph for this function:

◆ hasQuestionId()

ILIAS\Test\InternalRequestService::hasQuestionId ( )

Definition at line 63 of file class.InternalRequestService.php.

References ILIAS\Test\InternalRequestService\raw().

63  : bool
64  {
65  return $this->raw('q_id') !== null;
66  }
+ Here is the call graph for this function:

◆ hasRefId()

ILIAS\Test\InternalRequestService::hasRefId ( )

Definition at line 47 of file class.InternalRequestService.php.

References ILIAS\Test\InternalRequestService\raw().

47  : bool
48  {
49  return $this->raw('ref_id') !== null;
50  }
+ Here is the call graph for this function:

◆ isset()

ILIAS\Test\InternalRequestService::isset ( string  $key)

Definition at line 42 of file class.InternalRequestService.php.

References ILIAS\Test\InternalRequestService\raw().

42  : bool
43  {
44  return $this->raw($key) !== null;
45  }
string $key
Consumer key/client ID value.
Definition: System.php:193
+ Here is the call graph for this function:

◆ raw()

ILIAS\Test\InternalRequestService::raw ( string  $key)
Returns
mixed|null

Definition at line 101 of file class.InternalRequestService.php.

References ILIAS\LTI\ToolProvider\$key, and ILIAS\Repository\refinery().

Referenced by ILIAS\Test\InternalRequestService\hasQuestionId(), ILIAS\Test\InternalRequestService\hasRefId(), and ILIAS\Test\InternalRequestService\isset().

102  {
103  $no_transform = $this->refinery->identity();
104  return $this->get($key, $no_transform);
105  }
string $key
Consumer key/client ID value.
Definition: System.php:193
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ strVal()

ILIAS\Test\InternalRequestService::strVal ( string  $key)

Definition at line 107 of file class.InternalRequestService.php.

References ILIAS\Repository\str().

107  : string
108  {
109  return $this->str($key);
110  }
string $key
Consumer key/client ID value.
Definition: System.php:193
+ Here is the call graph for this function:

Field Documentation

◆ $http

ILIAS HTTP Services ILIAS\Test\InternalRequestService::$http
protected

Definition at line 29 of file class.InternalRequestService.php.

◆ $params

array ILIAS\Test\InternalRequestService::$params
protected

Definition at line 30 of file class.InternalRequestService.php.


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