ILIAS
release_8 Revision v8.23
◀ ilDoc Overview
class.ItemSessionRepository.php
Go to the documentation of this file.
1
<?php
2
3
declare(strict_types=1);
4
21
namespace
ILIAS\Container\Content
;
22
28
class
ItemSessionRepository
29
{
30
protected
const
KEY_BASE
=
"cont_item"
;
31
32
public
function
__construct
()
33
{
34
}
35
36
public
function
setExpanded
(
int
$id
,
int
$val): void
37
{
38
\ilSession::set
(self::KEY_BASE .
"_"
. $id .
"_expanded"
, $val);
39
}
40
41
public
function
getExpanded
(
int
$id
): ?
int
42
{
43
if
(\
ilSession::has
(self::KEY_BASE .
"_"
. $id .
"_expanded"
)) {
44
return \ilSession::get
(self::KEY_BASE .
"_"
. $id .
"_expanded"
);
45
}
46
return
null;
47
}
48
}
ILIAS\Container\Content\ItemSessionRepository
Stores repository clipboard data.
Definition:
class.ItemSessionRepository.php:28
ILIAS\Container\Content\ItemSessionRepository\KEY_BASE
const KEY_BASE
Definition:
class.ItemSessionRepository.php:30
ILIAS\Container\Content\ItemSessionRepository\setExpanded
setExpanded(int $id, int $val)
Definition:
class.ItemSessionRepository.php:36
ilSession\has
static has($a_var)
Definition:
class.ilSession.php:464
ILIAS\Repository\get
get(string $key, Refinery\Transformation $t)
Get passed parameter, if not data passed, get key from http request.
Definition:
trait.BaseGUIRequest.php:209
ILIAS\Container\Content
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
Definition:
class.BlockSessionRepository.php:21
ILIAS\Container\Content\ItemSessionRepository\__construct
__construct()
Definition:
class.ItemSessionRepository.php:32
$id
$id
plugin.php for ilComponentBuildPluginInfoObjectiveTest::testAddPlugins
Definition:
plugin.php:23
ILIAS\Container\Content\ItemSessionRepository\getExpanded
getExpanded(int $id)
Definition:
class.ItemSessionRepository.php:41
ILIAS\Repository\int
int(string $key)
Definition:
trait.BaseGUIRequest.php:61
ilSession\set
static set(string $a_var, $a_val)
Set a value.
Definition:
class.ilSession.php:451
Services
Container
Content
class.ItemSessionRepository.php
Generated on Sun Aug 31 2025 22:01:49 for ILIAS by
1.8.13 (using
Doxyfile
)