Class ItemState.
More...
◆ __construct()
◆ getStorage()
ILIAS\GlobalScreen\Client\ItemState::getStorage |
( |
| ) |
|
- Returns
- mixed[]
Definition at line 82 of file ItemState.php.
Referenced by ILIAS\GlobalScreen\Client\ItemState\__construct().
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 : [];
◆ isItemActive()
ILIAS\GlobalScreen\Client\ItemState::isItemActive |
( |
| ) |
|
Definition at line 71 of file ItemState.php.
References Vendor\Package\$b.
73 $hash = $this->
hash($this->identification->serialize());
74 $b = isset($this->storage[$hash]) && $this->storage[$hash] ==
true;
◆ $identification
ILIAS\GlobalScreen\Client\ItemState::$identification |
|
private |
◆ $refinery
ILIAS\GlobalScreen\Client\ItemState::$refinery |
|
protected |
◆ $storage
ILIAS\GlobalScreen\Client\ItemState::$storage |
|
private |
◆ $wrapper
ILIAS\GlobalScreen\Client\ItemState::$wrapper |
|
protected |
◆ COOKIE_NS_GS
const ILIAS\GlobalScreen\Client\ItemState::COOKIE_NS_GS = 'gs_active_items' |
◆ LEVEL_OF_TOOL
const ILIAS\GlobalScreen\Client\ItemState::LEVEL_OF_TOOL = 1 |
The documentation for this class was generated from the following file: