ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
SessionStore.php
Go to the documentation of this file.
1<?php
2
19declare(strict_types=1);
20
22
24use ilSession;
25
26final class SessionStore implements KeyValueStore
27{
28 public function value(string $name): string
29 {
30 return ilSession::get($name) ?? '';
31 }
32
33 public function update(string $name, string $value): void
34 {
35 ilSession::set($name, $value);
36 }
37}
static get(string $a_var)
static set(string $a_var, $a_val)
Set a value.