ILIAS  release_9 Revision v9.13-25-g2c18ec4c24f
ILIAS\Glossary\Flashcard\FlashcardSessionRepository Class Reference
+ Collaboration diagram for ILIAS\Glossary\Flashcard\FlashcardSessionRepository:

Public Member Functions

 __construct ()
 
 setInitialTerms (int $glo_id, int $user_id, int $box_nr, array $initial_terms)
 
 getInitialTerms (int $glo_id, int $user_id, int $box_nr)
 
 setTerms (int $glo_id, int $user_id, int $box_nr, array $terms)
 
 getTerms (int $glo_id, int $user_id, int $box_nr)
 

Data Fields

const KEY_BASE = "glo_flashcard_"
 

Detailed Description

Constructor & Destructor Documentation

◆ __construct()

ILIAS\Glossary\Flashcard\FlashcardSessionRepository::__construct ( )

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

31  {
32  }

Member Function Documentation

◆ getInitialTerms()

ILIAS\Glossary\Flashcard\FlashcardSessionRepository::getInitialTerms ( int  $glo_id,
int  $user_id,
int  $box_nr 
)
Returns
int[]

Definition at line 43 of file class.FlashcardSessionRepository.php.

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

43  : array
44  {
45  $key = self::KEY_BASE . $glo_id . "_" . $user_id . "_" . $box_nr . "_initial_terms";
46  if (\ilSession::has($key)) {
48  }
49  return [];
50  }
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:

◆ getTerms()

ILIAS\Glossary\Flashcard\FlashcardSessionRepository::getTerms ( int  $glo_id,
int  $user_id,
int  $box_nr 
)
Returns
int[]

Definition at line 61 of file class.FlashcardSessionRepository.php.

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

61  : array
62  {
63  $key = self::KEY_BASE . $glo_id . "_" . $user_id . "_" . $box_nr . "_terms";
64  if (\ilSession::has($key)) {
66  }
67  return [];
68  }
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:

◆ setInitialTerms()

ILIAS\Glossary\Flashcard\FlashcardSessionRepository::setInitialTerms ( int  $glo_id,
int  $user_id,
int  $box_nr,
array  $initial_terms 
)

Definition at line 34 of file class.FlashcardSessionRepository.php.

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

34  : void
35  {
36  $key = self::KEY_BASE . $glo_id . "_" . $user_id . "_" . $box_nr . "_initial_terms";
37  \ilSession::set($key, $initial_terms);
38  }
string $key
Consumer key/client ID value.
Definition: System.php:193
static set(string $a_var, $a_val)
Set a value.
+ Here is the call graph for this function:

◆ setTerms()

ILIAS\Glossary\Flashcard\FlashcardSessionRepository::setTerms ( int  $glo_id,
int  $user_id,
int  $box_nr,
array  $terms 
)

Definition at line 52 of file class.FlashcardSessionRepository.php.

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

52  : void
53  {
54  $key = self::KEY_BASE . $glo_id . "_" . $user_id . "_" . $box_nr . "_terms";
55  \ilSession::set($key, $terms);
56  }
string $key
Consumer key/client ID value.
Definition: System.php:193
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\Flashcard\FlashcardSessionRepository::KEY_BASE = "glo_flashcard_"

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


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