Keeps the state of a view in a simple stringly type key-value store.
More...
Keeps the state of a view in a simple stringly type key-value store.
Definition at line 9 of file State.php.
◆ getValueFor()
ILIAS\KioskMode\State::getValueFor |
( |
string |
$key | ) |
|
Get the value for the given key.
Definition at line 40 of file State.php.
References $key.
42 return $this->store[
$key];
◆ serialize()
ILIAS\KioskMode\State::serialize |
( |
| ) |
|
Get the key-value store as string.
Definition at line 48 of file State.php.
50 return json_encode($this->store);
◆ withoutKey()
ILIAS\KioskMode\State::withoutKey |
( |
string |
$key | ) |
|
Remove the key-value-pair.
Definition at line 30 of file State.php.
33 unset($clone->store[
$key]);
◆ withValueFor()
ILIAS\KioskMode\State::withValueFor |
( |
string |
$key, |
|
|
string |
$value |
|
) |
| |
Set a value for a key of the state.
Definition at line 20 of file State.php.
References $key.
23 $clone->store[
$key] = $value;
◆ $store
ILIAS\KioskMode\State::$store |
|
protected |
The documentation for this class was generated from the following file: