ILIAS  release_8 Revision v8.24
class.TermSessionRepository.php
Go to the documentation of this file.
1<?php
2
3declare(strict_types=1);
4
21namespace ILIAS\Glossary\Term;
22
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";
40 }
41
42 public function getLang(int $ref_id): string
43 {
44 $key = self::KEY_BASE . $ref_id . "_lang";
45 if (\ilSession::has($key)) {
47 }
48 return "";
49 }
50}
static set(string $a_var, $a_val)
Set a value.
static has($a_var)
$ref_id
Definition: ltiauth.php:67
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
string $key
Consumer key/client ID value.
Definition: System.php:193
get(string $key, Refinery\Transformation $t)
Get passed parameter, if not data passed, get key from http request.
$lang
Definition: xapiexit.php:26