ILIAS
trunk Revision v11.0_alpha-3011-gc6b235a2e85
◀ 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\Container\Content\BlockSessionRepository
Stores block properties.
Definition:
class.BlockSessionRepository.php:29
ILIAS\Container\Content\BlockSessionRepository\KEY_BASE
const KEY_BASE
Definition:
class.BlockSessionRepository.php:30
ILIAS\Container\Content\BlockSessionRepository\getProperty
getProperty(string $a_block_id, int $a_user_id, string $a_property)
Definition:
class.BlockSessionRepository.php:46
ILIAS\Container\Content\BlockSessionRepository\setProperty
setProperty(string $a_block_id, int $a_user_id, string $a_property, string $a_value)
Definition:
class.BlockSessionRepository.php:36
ILIAS\Container\Content\BlockSessionRepository\__construct
__construct()
Definition:
class.BlockSessionRepository.php:32
ilSession
Definition:
class.ilSession.php:22
ilSession\has
static has($a_var)
Definition:
class.ilSession.php:393
ILIAS\Container\Content
Definition:
class.BlockSequence.php:21
ILIAS\GlobalScreen\get
get(string $class_name)
Definition:
SingletonTrait.php:33
components
ILIAS
Container
Content
class.BlockSessionRepository.php
Generated on Sat Oct 18 2025 23:02:48 for ILIAS by
1.9.4 (using
Doxyfile
)