ILIAS  release_8 Revision v8.19-1-g4e8f2f9140c
All Data Structures Namespaces Files Functions Variables Modules Pages
ILIAS\Glossary\Term\TermSessionRepository Class Reference

Stores repository clipboard data. More...

+ Collaboration diagram for ILIAS\Glossary\Term\TermSessionRepository:

Public Member Functions

 __construct ()
 
 setLang (int $ref_id, string $lang)
 
 getLang (int $ref_id)
 

Data Fields

const KEY_BASE = "glo_term_"
 

Detailed Description

Stores repository clipboard data.

Author
Alexander Killing killi.nosp@m.ng@l.nosp@m.eifos.nosp@m..de

Definition at line 28 of file class.TermSessionRepository.php.

Constructor & Destructor Documentation

◆ __construct()

ILIAS\Glossary\Term\TermSessionRepository::__construct ( )

Definition at line 32 of file class.TermSessionRepository.php.

33  {
34  }

Member Function Documentation

◆ getLang()

ILIAS\Glossary\Term\TermSessionRepository::getLang ( int  $ref_id)

Definition at line 42 of file class.TermSessionRepository.php.

References ILIAS\LTI\ToolProvider\$key, ILIAS\Repository\get(), and ilSession\has().

42  : string
43  {
44  $key = self::KEY_BASE . $ref_id . "_lang";
45  if (\ilSession::has($key)) {
47  }
48  return "";
49  }
$ref_id
Definition: ltiauth.php:67
string $key
Consumer key/client ID value.
Definition: System.php:193
static has($a_var)
get(string $key, Refinery\Transformation $t)
Get passed parameter, if not data passed, get key from http request.
+ Here is the call graph for this function:

◆ setLang()

ILIAS\Glossary\Term\TermSessionRepository::setLang ( int  $ref_id,
string  $lang 
)

Definition at line 36 of file class.TermSessionRepository.php.

References ILIAS\LTI\ToolProvider\$key, and ilSession\set().

36  : void
37  {
38  $key = self::KEY_BASE . $ref_id . "_lang";
40  }
$ref_id
Definition: ltiauth.php:67
string $key
Consumer key/client ID value.
Definition: System.php:193
$lang
Definition: xapiexit.php:26
static set(string $a_var, $a_val)
Set a value.
+ Here is the call graph for this function:

Field Documentation

◆ KEY_BASE

const ILIAS\Glossary\Term\TermSessionRepository::KEY_BASE = "glo_term_"

Definition at line 30 of file class.TermSessionRepository.php.


The documentation for this class was generated from the following file: