ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
ilBadgeManagementSessionRepository Class Reference

Stores repository clipboard data. More...

+ Collaboration diagram for ilBadgeManagementSessionRepository:

Public Member Functions

 __construct ()
 
 setBadgeIds (array $ids)
 
 getBadgeIds ()
 
 clear ()
 

Data Fields

final const KEY = "bdgclpbrd"
 

Detailed Description

Stores repository clipboard data.

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

Definition at line 25 of file class.ilBadgeManagementSessionRepository.php.

Constructor & Destructor Documentation

◆ __construct()

ilBadgeManagementSessionRepository::__construct ( )

Definition at line 29 of file class.ilBadgeManagementSessionRepository.php.

30 {
31 }

Member Function Documentation

◆ clear()

ilBadgeManagementSessionRepository::clear ( )

Definition at line 46 of file class.ilBadgeManagementSessionRepository.php.

46 : void
47 {
48 \ilSession::clear(self::KEY);
49 }
static clear(string $a_var)

References ilSession\clear().

Referenced by BadgeManagementSessionRepositoryTest\testClear().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ getBadgeIds()

ilBadgeManagementSessionRepository::getBadgeIds ( )

Definition at line 38 of file class.ilBadgeManagementSessionRepository.php.

38 : array
39 {
40 if (\ilSession::has(self::KEY)) {
41 return \ilSession::get(self::KEY);
42 }
43 return [];
44 }
static has($a_var)
get(string $class_name)

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

Referenced by BadgeManagementSessionRepositoryTest\testBadgeIds(), and BadgeManagementSessionRepositoryTest\testClear().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ setBadgeIds()

ilBadgeManagementSessionRepository::setBadgeIds ( array  $ids)

Definition at line 33 of file class.ilBadgeManagementSessionRepository.php.

33 : void
34 {
35 \ilSession::set(self::KEY, $ids);
36 }
static set(string $a_var, $a_val)
Set a value.

References ilSession\set().

Referenced by BadgeManagementSessionRepositoryTest\testBadgeIds(), and BadgeManagementSessionRepositoryTest\testClear().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

Field Documentation

◆ KEY

final const ilBadgeManagementSessionRepository::KEY = "bdgclpbrd"

Definition at line 27 of file class.ilBadgeManagementSessionRepository.php.


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