ILIAS
release_8 Revision v8.24
◀ ilDoc Overview
class.TermSessionRepository.php
Go to the documentation of this file.
1
<?php
2
3
declare(strict_types=1);
4
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
Stores repository clipboard data.
Definition:
class.TermSessionRepository.php:29
ILIAS\Glossary\Term\TermSessionRepository\getLang
getLang(int $ref_id)
Definition:
class.TermSessionRepository.php:42
ILIAS\Glossary\Term\TermSessionRepository\KEY_BASE
const KEY_BASE
Definition:
class.TermSessionRepository.php:30
ILIAS\Glossary\Term\TermSessionRepository\setLang
setLang(int $ref_id, string $lang)
Definition:
class.TermSessionRepository.php:36
ILIAS\Glossary\Term\TermSessionRepository\__construct
__construct()
Definition:
class.TermSessionRepository.php:32
ilSession\set
static set(string $a_var, $a_val)
Set a value.
Definition:
class.ilSession.php:451
ilSession\has
static has($a_var)
Definition:
class.ilSession.php:464
$ref_id
$ref_id
Definition:
ltiauth.php:67
ILIAS\Glossary\Term
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
Definition:
class.TermManager.php:21
ILIAS\LTI\ToolProvider\$key
string $key
Consumer key/client ID value.
Definition:
System.php:193
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
$lang
$lang
Definition:
xapiexit.php:26
Modules
Glossary
Term
class.TermSessionRepository.php
Generated on Sun Nov 2 2025 22:01:12 for ILIAS by
1.9.4 (using
Doxyfile
)