ILIAS  trunk Revision v11.0_alpha-1715-g7fc467680fb
All Data Structures Namespaces Files Functions Variables Enumerations Enumerator Modules Pages
SessionStore.php
Go to the documentation of this file.
1 <?php
2 
19 declare(strict_types=1);
20 
22 
24 use ilSession;
25 
26 final 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.