ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
ILIAS\Glossary\Flashcard\FlashcardSessionRepository Class Reference
+ Inheritance diagram for ILIAS\Glossary\Flashcard\FlashcardSessionRepository:
+ 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)
 
 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)
 

Additional Inherited Members

- Data Fields inherited from ILIAS\Glossary\Flashcard\FlashcardSessionRepositoryInterface
const KEY_BASE = "glo_flashcard_"
 

Detailed Description

Constructor & Destructor Documentation

◆ __construct()

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

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

29 {
30 }

Member Function Documentation

◆ getInitialTerms()

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

Implements ILIAS\Glossary\Flashcard\FlashcardSessionRepositoryInterface.

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

44 : array
45 {
46 $key = self::KEY_BASE . $glo_id . "_" . $user_id . "_" . $box_nr . "_initial_terms";
47 if (\ilSession::has($key)) {
49 }
50 return [];
51 }
static has($a_var)
get(string $class_name)

References $user_id, ILIAS\GlobalScreen\get(), and ilSession\has().

+ Here is the call graph for this function:

◆ getTerms()

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

Implements ILIAS\Glossary\Flashcard\FlashcardSessionRepositoryInterface.

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

65 : array
66 {
67 $key = self::KEY_BASE . $glo_id . "_" . $user_id . "_" . $box_nr . "_terms";
68 if (\ilSession::has($key)) {
70 }
71 return [];
72 }

References $user_id, ILIAS\GlobalScreen\get(), and ilSession\has().

+ 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 
)
Parameters
Term[]$initial_terms

Implements ILIAS\Glossary\Flashcard\FlashcardSessionRepositoryInterface.

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

35 : void
36 {
37 $key = self::KEY_BASE . $glo_id . "_" . $user_id . "_" . $box_nr . "_initial_terms";
38 \ilSession::set($key, $initial_terms);
39 }
static set(string $a_var, $a_val)
Set a value.

References $user_id, and ilSession\set().

+ 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 
)
Parameters
Term[]$initial_terms

Implements ILIAS\Glossary\Flashcard\FlashcardSessionRepositoryInterface.

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

56 : void
57 {
58 $key = self::KEY_BASE . $glo_id . "_" . $user_id . "_" . $box_nr . "_terms";
59 \ilSession::set($key, $terms);
60 }

References $user_id, and ilSession\set().

+ Here is the call graph for this function:

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