19 declare(strict_types=1);
39 $clone->store[$key] = $value;
49 unset($clone->store[$key]);
61 return $this->store[$key];
69 return json_encode($this->store, JSON_THROW_ON_ERROR);
withValueFor(string $key, string $value)
Set a value for a key of the state.
getValueFor(string $key)
Get the value for the given key.
Keeps the state of a view in a simple stringly type key-value store.
while($session_entry=$r->fetchRow(ilDBConstants::FETCHMODE_ASSOC)) return null
serialize()
Get the key-value store as string.
withoutKey(string $key)
Remove the key-value-pair.