ILIAS
trunk Revision v11.0_alpha-2638-g80c1d007f79
◀ ilDoc Overview
class.TermSessionRepository.php
Go to the documentation of this file.
1
<?php
2
19
declare(strict_types=1);
20
21
namespace
ILIAS\Glossary\Term
;
22
28
class
TermSessionRepository
29
{
30
public
const
KEY_BASE
=
"glo_term_"
;
31
32
public
function
__construct
()
33
{
34
}
35
36
public
function
setLang
(
int
$ref_id
,
string
$lang
): void
37
{
38
$key = self::KEY_BASE . $ref_id .
"_lang"
;
39
\ilSession::set
($key, $lang);
40
}
41
42
public
function
getLang
(
int
$ref_id
): string
43
{
44
$key = self::KEY_BASE . $ref_id .
"_lang"
;
45
if
(\
ilSession::has
($key)) {
46
return \ilSession::get
($key);
47
}
48
return
""
;
49
}
50
}
ILIAS\Glossary\Term\TermSessionRepository\__construct
__construct()
Definition:
class.TermSessionRepository.php:32
ILIAS\Glossary\Term\TermSessionRepository\getLang
getLang(int $ref_id)
Definition:
class.TermSessionRepository.php:42
ILIAS\Glossary\Term\TermSessionRepository
Stores repository clipboard data.
Definition:
class.TermSessionRepository.php:28
ILIAS\Glossary\Term\TermSessionRepository\KEY_BASE
const KEY_BASE
Definition:
class.TermSessionRepository.php:30
ILIAS\Glossary\Term
Definition:
class.TermManager.php:21
$ref_id
$ref_id
Definition:
ltiauth.php:65
ILIAS\GlobalScreen\get
get(string $class_name)
Definition:
SingletonTrait.php:32
ilSession\has
static has($a_var)
Definition:
class.ilSession.php:393
$lang
$lang
Definition:
xapiexit.php:25
ILIAS\Glossary\Term\TermSessionRepository\setLang
setLang(int $ref_id, string $lang)
Definition:
class.TermSessionRepository.php:36
ilSession\set
static set(string $a_var, $a_val)
Set a value.
Definition:
class.ilSession.php:380
components
ILIAS
Glossary
Term
class.TermSessionRepository.php
Generated on Sun Aug 31 2025 23:03:05 for ILIAS by
1.8.13 (using
Doxyfile
)