ILIAS  trunk Revision v11.0_alpha-2662-g519ff7d528f
class.BlockSessionRepository.php
Go to the documentation of this file.
1 <?php
2 
19 declare(strict_types=1);
20 
21 namespace ILIAS\Container\Content;
22 
29 {
30  protected const KEY_BASE = "cont_block";
31 
32  public function __construct()
33  {
34  }
35 
36  public function setProperty(
37  string $a_block_id,
38  int $a_user_id,
39  string $a_property,
40  string $a_value
41  ): void {
42  \ilSession::set(self::KEY_BASE . "_" .
43  $a_block_id . "_" . $a_user_id . "_" . $a_property, $a_value);
44  }
45 
46  public function getProperty(
47  string $a_block_id,
48  int $a_user_id,
49  string $a_property
50  ): string {
51  $key = self::KEY_BASE . "_" . $a_block_id . "_" . $a_user_id . "_" . $a_property;
52  if (\ilSession::has($key)) {
54  }
55  return "";
56  }
57 }
get(string $class_name)
static has($a_var)
getProperty(string $a_block_id, int $a_user_id, string $a_property)
setProperty(string $a_block_id, int $a_user_id, string $a_property, string $a_value)
static set(string $a_var, $a_val)
Set a value.