◆ __construct()
ILIAS\GlobalScreen\GUI\Input\Input::__construct |
( |
private Services |
$http, |
|
|
private Refinery\Factory |
$refinery, |
|
|
private Factory |
$data_factory, |
|
|
private \ilLanguage |
$lng, |
|
|
private Flow |
$flow |
|
) |
| |
◆ buildToken()
ILIAS\GlobalScreen\GUI\Input\Input::buildToken |
( |
string |
$namespace, |
|
|
string |
$token, |
|
|
?URI |
$uri = null |
|
) |
| |
Definition at line 137 of file Input.php.
138 {
139 if ($uri === null) {
140 $uri = $this->flow->getHereAsURI();
141 }
142
143 $builder = new URLBuilder($uri);
144
145 return new TokenContainer(...$builder->acquireParameter([
$namespace],
$token));
146 }
if($err=$client->getError()) $namespace
References $namespace, and $token.
◆ getAllFromRequest()
Definition at line 106 of file Input.php.
108 : array {
110 return [];
111 }
112
113 if (
$token instanceof TokenContainer) {
115 }
116
117 $query_params = $this->
request()->getQueryParams();
119 $ids = $query_params[$name] ?? [];
120 $ids = is_array($ids) ? $ids : [$ids];
121
122
123 if (($ids[0] ?? null) === self::ALL_OBJECTS) {
125 }
126
127
128 if (($interruptive_items = $this->
http->request()->getParsedBody()[self::INTERRUPTIVE_ITEMS] ??
false)) {
129 foreach ($interruptive_items as $interruptive_item) {
130 $ids[] = $interruptive_item;
131 }
132 }
133
134 return array_map(fn(
$id):
string => $this->unhash(
$id), $ids);
135 }
$id
plugin.php for ilComponentBuildPluginInfoObjectiveTest::testAddPlugins
static http()
Fetches the global http state from ILIAS.
◆ getFirstFromRequest()
Definition at line 60 of file Input.php.
62 : string {
64 return '';
65 }
66
67 if (
$token instanceof TokenContainer) {
69 }
70
71 $query_params = $this->
request()->getQueryParams();
73 $id = $query_params[$name] ??
'';
74
75 if (is_array(
$id) && count(
$id) === 1 && isset(
$id[0]) &&
$id[0] === self::ALL_OBJECTS) {
77 }
78
81 return $id ===
null ?
'' : $this->unhash(
$id);
82 }
83
84 return $this->unhash(
$id);
85 }
◆ keep()
◆ keepTokens()
ILIAS\GlobalScreen\GUI\Input\Input::keepTokens |
( |
PonsGUI |
$gui | ) |
|
◆ request()
ILIAS\GlobalScreen\GUI\Input\Input::request |
( |
| ) |
|
◆ ALL_OBJECTS
const ILIAS\GlobalScreen\GUI\Input\Input::ALL_OBJECTS = 'ALL_OBJECTS' |
◆ INTERRUPTIVE_ITEMS
const ILIAS\GlobalScreen\GUI\Input\Input::INTERRUPTIVE_ITEMS = 'interruptive_items' |
|
private |
The documentation for this class was generated from the following file:
- components/ILIAS/GlobalScreen/src/GUI/Input/Input.php