ILIAS
trunk Revision v11.0_alpha-2662-g519ff7d528f
◀ ilDoc Overview
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
28
class
BlockSessionRepository
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)) {
53
return \ilSession::get
($key);
54
}
55
return
""
;
56
}
57
}
ILIAS\UI\Component\Legacy\Content\BlockSessionRepository\KEY_BASE
const KEY_BASE
Definition:
class.BlockSessionRepository.php:30
ILIAS\UI\Component\Legacy\Content\BlockSessionRepository\__construct
__construct()
Definition:
class.BlockSessionRepository.php:32
ILIAS\GlobalScreen\get
get(string $class_name)
Definition:
SingletonTrait.php:33
ilSession\has
static has($a_var)
Definition:
class.ilSession.php:393
ILIAS\Container\Content
Definition:
class.BlockSequence.php:21
ILIAS\UI\Component\Legacy\Content\BlockSessionRepository
Stores block properties.
Definition:
class.BlockSessionRepository.php:28
ILIAS\UI\Component\Legacy\Content\BlockSessionRepository\getProperty
getProperty(string $a_block_id, int $a_user_id, string $a_property)
Definition:
class.BlockSessionRepository.php:46
ILIAS\UI\Component\Legacy\Content\BlockSessionRepository\setProperty
setProperty(string $a_block_id, int $a_user_id, string $a_property, string $a_value)
Definition:
class.BlockSessionRepository.php:36
ilSession\set
static set(string $a_var, $a_val)
Set a value.
Definition:
class.ilSession.php:380
components
ILIAS
Container
Content
class.BlockSessionRepository.php
Generated on Wed Sep 3 2025 23:02:39 for ILIAS by
1.8.13 (using
Doxyfile
)