ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
class.BlockSessionRepository.php
Go to the documentation of this file.
1<?php
2
19declare(strict_types=1);
20
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}
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 has($a_var)
get(string $class_name)