ILIAS  release_8 Revision v8.19
All Data Structures Namespaces Files Functions Variables Modules Pages
class.PresentationGUIRequest.php
Go to the documentation of this file.
1 <?php
2 
20 
22 
24 {
26 
27  public function __construct(
30  ?array $passed_query_params = null,
31  ?array $passed_post_data = null
32  ) {
33  $this->initRequest(
34  $http,
35  $refinery,
38  );
39  }
40 
41  public function getRefId(): int
42  {
43  return $this->int("ref_id");
44  }
45 
46  public function getObjId(): int
47  {
48  return $this->int("obj_id");
49  }
50 
51  public function getObjType(): string
52  {
53  return $this->str("obj_type");
54  }
55 
56  public function getTranslation(): string
57  {
58  return $this->str("transl");
59  }
60 
61  public function getFocusId(): int
62  {
63  return $this->int("focus_id");
64  }
65 
66  public function getFocusReturn(): int
67  {
68  return $this->int("focus_return");
69  }
70 
71  public function getBackPage(): string
72  {
73  return $this->str("back_pg");
74  }
75 
76  public function getSearchString(): string
77  {
78  return $this->str("srcstring");
79  }
80 
81  public function getFrame(): string
82  {
83  return $this->str("frame");
84  }
85 
86  public function getFromPage(): string
87  {
88  return $this->str("from_page");
89  }
90 
91  public function getMobId(): int
92  {
93  return $this->int("mob_id");
94  }
95 
96  public function getEmbedMode(): int
97  {
98  return $this->int("embed_mode");
99  }
100 
101  public function getCmd(): string
102  {
103  if (!$this->isArray("cmd")) {
104  return $this->str("cmd");
105  }
106  return "";
107  }
108 
109  public function getPgId(): int
110  {
111  return $this->int("pg_id");
112  }
113 
114  public function getPgType(): string
115  {
116  return $this->str("pg_type");
117  }
118 
119  public function getNotificationSwitch(): int
120  {
121  return $this->int("ntf");
122  }
123 
124  public function getType(): string
125  {
126  return $this->str("type");
127  }
128 
129  public function getUrl(): string
130  {
131  return $this->str("url");
132  }
133 
134  public function getRating(): int
135  {
136  return $this->int("rating");
137  }
138 
139  public function getItems(): array
140  {
141  return $this->strArray("item");
142  }
143 
144  public function getSelectedType(): string
145  {
146  return $this->str("sel_type");
147  }
148 
149  public function getSelectedObjIds(): array
150  {
151  return $this->intArray("obj_id");
152  }
153 
154  public function getQuestionPageId(): int
155  {
156  return $this->int("page_id");
157  }
158 
159  public function getQuestionId(): int
160  {
161  return $this->int("id");
162  }
163 }
Class ChatMainBarProvider .
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...
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
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.
trait BaseGUIRequest
Base gui request wrapper.
$http
Definition: raiseError.php:7
__construct(\ILIAS\HTTP\Services $http, \ILIAS\Refinery\Factory $refinery, ?array $passed_query_params=null, ?array $passed_post_data=null)
Refinery Factory $refinery