19declare(strict_types=1);
23use ILIAS\GlobalScreen\Scope\MainMenu\Collector\Renderer\Hasher;
24use ILIAS\HTTP\Wrapper\WrapperFactory;
67 $this->wrapper =
$DIC->http()->wrapper();
68 $this->refinery =
$DIC->refinery();
73 $hash = $this->hash($this->identification->serialize());
74 $b = isset($this->storage[$hash]) && $this->storage[$hash] ==
true;
85 if (!isset($json_decode)) {
86 $cookie_value = $this->wrapper->cookie()->has(self::COOKIE_NS_GS)
87 ? $this->wrapper->cookie()->retrieve(self::COOKIE_NS_GS, $this->refinery->to()->string())
90 $json_decode = json_decode($cookie_value,
true, 512);
91 $json_decode = is_array($json_decode) ? $json_decode : [];
An exception for terminatinating execution or to throw for unit testing.
__construct(IdentificationInterface $identification)
ItemState constructor.
static initILIAS()
ilias initialisation
Interface IdentificationInterface.
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...