ILIAS  release_7 Revision v7.30-3-g800a261c036
ilClassificationSessionRepository Class Reference

Repos for classification session data. More...

+ Collaboration diagram for ilClassificationSessionRepository:

Public Member Functions

 __construct (int $base_ref_id)
 ilClassificationSessionRepository constructor. More...
 
 unsetAll ()
 Unset all. More...
 
 unsetValueForProvider (string $provider)
 
 isEmpty ()
 
 getValueForProvider (string $provider)
 
 setValueForProvider ($provider, $value)
 

Data Fields

const BASE_SESSION_KEY = 'clsfct'
 

Protected Attributes

 $base_ref_id
 

Detailed Description

Repos for classification session data.

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

Definition at line 10 of file class.ilClassificationSessionRepository.php.

Constructor & Destructor Documentation

◆ __construct()

ilClassificationSessionRepository::__construct ( int  $base_ref_id)

ilClassificationSessionRepository constructor.

Parameters
int$base_ref_id

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

References $base_ref_id.

Member Function Documentation

◆ getValueForProvider()

ilClassificationSessionRepository::getValueForProvider ( string  $provider)
Parameters
string$provider
Returns
mixed

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

References $_SESSION, $base_ref_id, and BASE_SESSION_KEY.

◆ isEmpty()

ilClassificationSessionRepository::isEmpty ( )
Returns
bool

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

48 {
49 return !isset($_SESSION[self::BASE_SESSION_KEY][$this->base_ref_id]);
50 }

References $_SESSION.

◆ setValueForProvider()

ilClassificationSessionRepository::setValueForProvider (   $provider,
  $value 
)
Parameters
$provider
$value

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

66 {
68 }

References $_SESSION, $base_ref_id, and BASE_SESSION_KEY.

◆ unsetAll()

ilClassificationSessionRepository::unsetAll ( )

Unset all.

Definition at line 31 of file class.ilClassificationSessionRepository.php.

32 {
33 unset($_SESSION[self::BASE_SESSION_KEY][$this->base_ref_id]);
34 }

References $_SESSION.

◆ unsetValueForProvider()

ilClassificationSessionRepository::unsetValueForProvider ( string  $provider)
Parameters
string$provider

Definition at line 39 of file class.ilClassificationSessionRepository.php.

40 {
41 unset($_SESSION[self::BASE_SESSION_KEY][$this->base_ref_id][$provider]);
42 }

References $_SESSION.

Field Documentation

◆ $base_ref_id

ilClassificationSessionRepository::$base_ref_id
protected

◆ BASE_SESSION_KEY

const ilClassificationSessionRepository::BASE_SESSION_KEY = 'clsfct'

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