19declare(strict_types=1);
28use ILIAS\GlobalScreen\GUI\Hasher;
29use Psr\Http\Message\ServerRequestInterface;
71 $query_params = $this->
request()->getQueryParams();
73 $id = $query_params[$name] ??
'';
75 if (is_array(
$id) && count(
$id) === 1 && isset(
$id[0]) &&
$id[0] === self::ALL_OBJECTS) {
81 return $id ===
null ?
'' : $this->unhash(
$id);
84 return $this->unhash(
$id);
100 $ctrl = $this->flow->ctrl();
101 $current_class = $ctrl->getCmdClass();
117 $query_params = $this->request()->getQueryParams();
119 $ids = $query_params[$name] ?? [];
120 $ids = is_array($ids) ? $ids : [$ids];
123 if (($ids[0] ??
null) === self::ALL_OBJECTS) {
124 return [self::ALL_OBJECTS];
128 if (($interruptive_items = $this->
http->request()->getParsedBody()[self::INTERRUPTIVE_ITEMS] ??
false)) {
129 foreach ($interruptive_items as $interruptive_item) {
130 $ids[] = $interruptive_item;
134 return array_map(fn(
$id):
string => $this->unhash(
$id), $ids);
140 $uri = $this->flow->getHereAsURI();
148 public function request(): ServerRequestInterface
150 return $this->
http->request();
$id
plugin.php for ilComponentBuildPluginInfoObjectiveTest::testAddPlugins
The scope of this class is split ilias-conform URI's into components.
if($err=$client->getError()) $namespace
static http()
Fetches the global http state from ILIAS.
if(!file_exists('../ilias.ini.php'))