ILIAS  trunk Revision v11.0_alpha-1713-gd8962da2f67
All Data Structures Namespaces Files Functions Variables Enumerations Enumerator Modules Pages
class.StandardGUIRequest.php
Go to the documentation of this file.
1 <?php
2 
19 declare(strict_types=1);
20 
21 namespace ILIAS\InfoScreen;
22 
26 
28 {
30 
31  public function __construct(
34  ?array $passed_query_params = null,
35  ?array $passed_post_data = null
36  ) {
37  $this->initRequest(
38  $http,
39  $refinery,
40  $passed_query_params,
41  $passed_post_data
42  );
43  }
44 
45  public function getUserId(): int
46  {
47  return $this->int("user_id");
48  }
49 
50  public function getLPEdit(): int
51  {
52  return $this->int("lp_edit");
53  }
54 }
$http
Definition: deliver.php:30
trait BaseGUIRequest
Base gui request wrapper.
while($session_entry=$r->fetchRow(ilDBConstants::FETCHMODE_ASSOC)) return null
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.
Builds data types.
Definition: Factory.php:35
__construct(Services $http, Factory $refinery, ?array $passed_query_params=null, ?array $passed_post_data=null)