ILIAS  trunk Revision v11.0_alpha-1761-g6dbbfa7b760
All Data Structures Namespaces Files Functions Variables Enumerations Enumerator Modules Pages
ILIAS\Container\StandardGUIRequest Class Reference
+ Collaboration diagram for ILIAS\Container\StandardGUIRequest:

Public Member Functions

 __construct (\ILIAS\HTTP\Services $http, \ILIAS\Refinery\Factory $refinery)
 
 getRefId ()
 
 getItemRefId ()
 
 getRedirectSource ()
 
 getNewType ()
 
 getType ()
 
 getBaseClass ()
 
 getSelectedIds ()
 
 getCloneSource ()
 
 getCmdRefId ()
 
 getChildRefId ()
 
 getParentRefId ()
 
 getExpand ()
 
 getBlockAction ()
 
 getBlockId ()
 
 getPreviousSession ()
 
 getNextSession ()
 
 getObjectiveId ()
 
 getNodes ()
 
 getCopyOptions ()
 
 getPositions ()
 
 getTrashIds ()
 
 getAlreadyRenderedRefIds ()
 
 getStartObjPositions ()
 
 getStartObjIds ()
 
 getCmdClass ()
 

Detailed Description

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

Constructor & Destructor Documentation

◆ __construct()

ILIAS\Container\StandardGUIRequest::__construct ( \ILIAS\HTTP\Services  $http,
\ILIAS\Refinery\Factory  $refinery 
)

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

References ILIAS\Repository\initRequest().

32  {
33  $this->initRequest(
34  $http,
35  $refinery
36  );
37  }
$http
Definition: deliver.php:30
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.
+ Here is the call graph for this function:

Member Function Documentation

◆ getAlreadyRenderedRefIds()

ILIAS\Container\StandardGUIRequest::getAlreadyRenderedRefIds ( )
Returns
int[]

Definition at line 166 of file class.StandardGUIRequest.php.

References $parts, and ILIAS\Repository\strArray().

166  : array
167  {
168  $ids = $this->strArray("ids");
169  $ref_ids = array_map(static function (string $i): int {
170  $parts = explode("_", $i);
171  return (int) $parts[2];
172  }, $ids);
173  return $ref_ids;
174  }
if($clientAssertionType !='urn:ietf:params:oauth:client-assertion-type:jwt-bearer'|| $grantType !='client_credentials') $parts
Definition: ltitoken.php:61
+ Here is the call graph for this function:

◆ getBaseClass()

ILIAS\Container\StandardGUIRequest::getBaseClass ( )

Definition at line 64 of file class.StandardGUIRequest.php.

References ILIAS\Repository\str().

64  : string
65  {
66  return $this->str("baseClass");
67  }
+ Here is the call graph for this function:

◆ getBlockAction()

ILIAS\Container\StandardGUIRequest::getBlockAction ( )

Definition at line 105 of file class.StandardGUIRequest.php.

References ILIAS\Repository\str().

105  : string
106  {
107  return $this->str("act");
108  }
+ Here is the call graph for this function:

◆ getBlockId()

ILIAS\Container\StandardGUIRequest::getBlockId ( )

Definition at line 110 of file class.StandardGUIRequest.php.

References ILIAS\Repository\str().

110  : string
111  {
112  return $this->str("cont_block_id");
113  }
+ Here is the call graph for this function:

◆ getChildRefId()

ILIAS\Container\StandardGUIRequest::getChildRefId ( )

Definition at line 90 of file class.StandardGUIRequest.php.

References ILIAS\Repository\int().

90  : int
91  {
92  return $this->int("child_ref_id");
93  }
+ Here is the call graph for this function:

◆ getCloneSource()

ILIAS\Container\StandardGUIRequest::getCloneSource ( )

Definition at line 80 of file class.StandardGUIRequest.php.

References ILIAS\Repository\int().

80  : int
81  {
82  return $this->int("clone_source");
83  }
+ Here is the call graph for this function:

◆ getCmdClass()

ILIAS\Container\StandardGUIRequest::getCmdClass ( )

Definition at line 188 of file class.StandardGUIRequest.php.

References ILIAS\Repository\str().

188  : string
189  {
190  return $this->str("cmdClass");
191  }
+ Here is the call graph for this function:

◆ getCmdRefId()

ILIAS\Container\StandardGUIRequest::getCmdRefId ( )

Definition at line 85 of file class.StandardGUIRequest.php.

References ILIAS\Repository\int().

85  : int
86  {
87  return $this->int("cmdrefid");
88  }
+ Here is the call graph for this function:

◆ getCopyOptions()

ILIAS\Container\StandardGUIRequest::getCopyOptions ( )

Definition at line 145 of file class.StandardGUIRequest.php.

References ILIAS\Repository\arrayArray().

145  : array
146  {
147  return $this->arrayArray("cp_options");
148  }
+ Here is the call graph for this function:

◆ getExpand()

ILIAS\Container\StandardGUIRequest::getExpand ( )

Definition at line 100 of file class.StandardGUIRequest.php.

References ILIAS\Repository\int().

100  : int
101  {
102  return $this->int("expand");
103  }
+ Here is the call graph for this function:

◆ getItemRefId()

ILIAS\Container\StandardGUIRequest::getItemRefId ( )

Definition at line 44 of file class.StandardGUIRequest.php.

References ILIAS\Repository\int().

44  : int
45  {
46  return $this->int("item_ref_id");
47  }
+ Here is the call graph for this function:

◆ getNewType()

ILIAS\Container\StandardGUIRequest::getNewType ( )

Definition at line 54 of file class.StandardGUIRequest.php.

References ILIAS\Repository\str().

54  : string
55  {
56  return $this->str("new_type");
57  }
+ Here is the call graph for this function:

◆ getNextSession()

ILIAS\Container\StandardGUIRequest::getNextSession ( )

Definition at line 123 of file class.StandardGUIRequest.php.

References ILIAS\FileDelivery\http(), ILIAS\Repository\int(), and null.

123  : ?int
124  {
125  if ($this->http->wrapper()->query()->has('crs_next_sess')) {
126  return $this->int("crs_next_sess");
127  }
128  return null;
129  }
while($session_entry=$r->fetchRow(ilDBConstants::FETCHMODE_ASSOC)) return null
static http()
Fetches the global http state from ILIAS.
+ Here is the call graph for this function:

◆ getNodes()

ILIAS\Container\StandardGUIRequest::getNodes ( )
Returns
int[]

Definition at line 137 of file class.StandardGUIRequest.php.

References ILIAS\Repository\int(), and ILIAS\Repository\intArray().

137  : array
138  {
139  if ($this->int("node") > 0) {
140  return [$this->int("node")];
141  }
142  return $this->intArray("nodes");
143  }
+ Here is the call graph for this function:

◆ getObjectiveId()

ILIAS\Container\StandardGUIRequest::getObjectiveId ( )

Definition at line 131 of file class.StandardGUIRequest.php.

References ILIAS\Repository\int().

131  : int
132  {
133  return $this->int("oobj");
134  }
+ Here is the call graph for this function:

◆ getParentRefId()

ILIAS\Container\StandardGUIRequest::getParentRefId ( )

Definition at line 95 of file class.StandardGUIRequest.php.

References ILIAS\Repository\int().

95  : int
96  {
97  return $this->int("parent_ref_id");
98  }
+ Here is the call graph for this function:

◆ getPositions()

ILIAS\Container\StandardGUIRequest::getPositions ( )

Definition at line 150 of file class.StandardGUIRequest.php.

References ILIAS\FileDelivery\http().

150  : array
151  {
152  // note: the position parameter is currently
153  // quite unstructured typewise, array of array|string
154  $body = $this->http->request()->getParsedBody();
155  return $body["position"] ?? [];
156  //return $this->arrayArray("position");
157  }
static http()
Fetches the global http state from ILIAS.
+ Here is the call graph for this function:

◆ getPreviousSession()

ILIAS\Container\StandardGUIRequest::getPreviousSession ( )

Definition at line 115 of file class.StandardGUIRequest.php.

References ILIAS\FileDelivery\http(), ILIAS\Repository\int(), and null.

115  : ?int
116  {
117  if ($this->http->wrapper()->query()->has('crs_prev_sess')) {
118  return $this->int("crs_prev_sess");
119  }
120  return null;
121  }
while($session_entry=$r->fetchRow(ilDBConstants::FETCHMODE_ASSOC)) return null
static http()
Fetches the global http state from ILIAS.
+ Here is the call graph for this function:

◆ getRedirectSource()

ILIAS\Container\StandardGUIRequest::getRedirectSource ( )

Definition at line 49 of file class.StandardGUIRequest.php.

References ILIAS\Repository\str().

49  : string
50  {
51  return $this->str("redirectSource");
52  }
+ Here is the call graph for this function:

◆ getRefId()

ILIAS\Container\StandardGUIRequest::getRefId ( )

Definition at line 39 of file class.StandardGUIRequest.php.

References ILIAS\Repository\int().

39  : int
40  {
41  return $this->int("ref_id");
42  }
+ Here is the call graph for this function:

◆ getSelectedIds()

ILIAS\Container\StandardGUIRequest::getSelectedIds ( )
Returns
int []

Definition at line 70 of file class.StandardGUIRequest.php.

References ILIAS\Repository\int(), and ILIAS\Repository\intArray().

70  : array
71  {
72  if ($this->int("item_ref_id") > 0) {
73  $ids = [$this->int("item_ref_id")];
74  } else {
75  $ids = $this->intArray("id");
76  }
77  return $ids;
78  }
+ Here is the call graph for this function:

◆ getStartObjIds()

ILIAS\Container\StandardGUIRequest::getStartObjIds ( )
Returns
int[]

Definition at line 183 of file class.StandardGUIRequest.php.

References ILIAS\Repository\intArray().

183  : array
184  {
185  return $this->intArray("starter");
186  }
+ Here is the call graph for this function:

◆ getStartObjPositions()

ILIAS\Container\StandardGUIRequest::getStartObjPositions ( )
Returns
int[]

Definition at line 177 of file class.StandardGUIRequest.php.

References ILIAS\Repository\intArray().

177  : array
178  {
179  return $this->intArray("pos");
180  }
+ Here is the call graph for this function:

◆ getTrashIds()

ILIAS\Container\StandardGUIRequest::getTrashIds ( )
Returns
int[]

Definition at line 160 of file class.StandardGUIRequest.php.

References ILIAS\Repository\intArray().

160  : array
161  {
162  return $this->intArray("trash_id");
163  }
+ Here is the call graph for this function:

◆ getType()

ILIAS\Container\StandardGUIRequest::getType ( )

Definition at line 59 of file class.StandardGUIRequest.php.

References ILIAS\Repository\str().

59  : string
60  {
61  return $this->str("type");
62  }
+ Here is the call graph for this function:

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