ILIAS  release_9 Revision v9.13-25-g2c18ec4c24f
ILIAS\Container\Classification\ClassificationSessionRepository Class Reference
+ Collaboration diagram for ILIAS\Container\Classification\ClassificationSessionRepository:

Public Member Functions

 __construct (int $base_ref_id)
 
 unsetAll ()
 
 unsetValueForProvider (string $provider)
 
 isEmpty ()
 
 getValueForProvider (string $provider)
 
 setValueForProvider (string $provider, array $value)
 

Data Fields

const BASE_SESSION_KEY = 'clsfct'
 

Protected Attributes

string $key
 
int $base_ref_id
 

Detailed Description

Definition at line 20 of file class.ClassificationSessionRepository.php.

Constructor & Destructor Documentation

◆ __construct()

ILIAS\Container\Classification\ClassificationSessionRepository::__construct ( int  $base_ref_id)

Member Function Documentation

◆ getValueForProvider()

ILIAS\Container\Classification\ClassificationSessionRepository::getValueForProvider ( string  $provider)

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

References $provider, ilSession\get(), and ilSession\has().

52  : array
53  {
54  if (\ilSession::has($this->key)) {
55  $vals = \ilSession::get($this->key);
56  return $vals[$provider] ?? [];
57  }
58  return [];
59  }
static get(string $a_var)
$provider
Definition: ltitoken.php:83
static has($a_var)
+ Here is the call graph for this function:

◆ isEmpty()

ILIAS\Container\Classification\ClassificationSessionRepository::isEmpty ( )

Definition at line 47 of file class.ClassificationSessionRepository.php.

References ilSession\has().

47  : bool
48  {
49  return !\ilSession::has($this->key);
50  }
static has($a_var)
+ Here is the call graph for this function:

◆ setValueForProvider()

ILIAS\Container\Classification\ClassificationSessionRepository::setValueForProvider ( string  $provider,
array  $value 
)

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

References $provider, ilSession\get(), ilSession\has(), and ilSession\set().

61  : void
62  {
63  $vals = [];
64  if (\ilSession::has($this->key)) {
65  $vals = \ilSession::get($this->key);
66  }
67  $vals[$provider] = $value;
68  \ilSession::set($this->key, $vals);
69  }
static get(string $a_var)
$provider
Definition: ltitoken.php:83
static has($a_var)
static set(string $a_var, $a_val)
Set a value.
+ Here is the call graph for this function:

◆ unsetAll()

ILIAS\Container\Classification\ClassificationSessionRepository::unsetAll ( )

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

References ilSession\clear().

33  : void
34  {
35  \ilSession::clear($this->key);
36  }
static clear(string $a_var)
+ Here is the call graph for this function:

◆ unsetValueForProvider()

ILIAS\Container\Classification\ClassificationSessionRepository::unsetValueForProvider ( string  $provider)

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

References ilSession\get(), ilSession\has(), and ilSession\set().

38  : void
39  {
40  if (\ilSession::has($this->key)) {
41  $vals = \ilSession::get($this->key);
42  unset($vals[$provider]);
43  \ilSession::set($this->key, $vals);
44  }
45  }
static get(string $a_var)
$provider
Definition: ltitoken.php:83
static has($a_var)
static set(string $a_var, $a_val)
Set a value.
+ Here is the call graph for this function:

Field Documentation

◆ $base_ref_id

int ILIAS\Container\Classification\ClassificationSessionRepository::$base_ref_id
protected

◆ $key

string ILIAS\Container\Classification\ClassificationSessionRepository::$key
protected

Definition at line 23 of file class.ClassificationSessionRepository.php.

◆ BASE_SESSION_KEY

const ILIAS\Container\Classification\ClassificationSessionRepository::BASE_SESSION_KEY = 'clsfct'

Definition at line 22 of file class.ClassificationSessionRepository.php.


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