ILIAS  release_8 Revision v8.23
ilBadgeManagementSessionRepository Class Reference

Stores repository clipboard data. More...

+ Collaboration diagram for ilBadgeManagementSessionRepository:

Public Member Functions

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

Data Fields

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.

References ilSession\clear().

Referenced by BadgeManagementSessionRepositoryTest\testClear().

46  : void
47  {
48  \ilSession::clear(self::KEY);
49  }
static clear(string $a_var)
+ 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.

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

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

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 $key, Refinery\Transformation $t)
Get passed parameter, if not data passed, get key from http request.
+ 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.

References ilSession\set().

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

33  : void
34  {
35  \ilSession::set(self::KEY, $ids);
36  }
static set(string $a_var, $a_val)
Set a value.
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

Field Documentation

◆ KEY

const ilBadgeManagementSessionRepository::KEY = "bdgclpbrd"

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


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