ILIAS  release_8 Revision v8.19
All Data Structures Namespaces Files Functions Variables Modules Pages
ILIAS\Navigation\NavigationSessionRepository Class Reference
+ Collaboration diagram for ILIAS\Navigation\NavigationSessionRepository:

Public Member Functions

 __construct ()
 
 setHistory (array $hist)
 
 getHistory ()
 

Data Fields

const KEY = "il_nav_history"
 

Detailed Description

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

Definition at line 26 of file class.NavigationSessionRepository.php.

Constructor & Destructor Documentation

◆ __construct()

ILIAS\Navigation\NavigationSessionRepository::__construct ( )

Definition at line 30 of file class.NavigationSessionRepository.php.

31  {
32  }

Member Function Documentation

◆ getHistory()

ILIAS\Navigation\NavigationSessionRepository::getHistory ( )

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

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

39  : array
40  {
41  if (\ilSession::has(self::KEY)) {
42  return unserialize(\ilSession::get(self::KEY), ['allowed_classes' => false]);
43  }
44  return [];
45  }
static get(string $a_var)
static has($a_var)
+ Here is the call graph for this function:

◆ setHistory()

ILIAS\Navigation\NavigationSessionRepository::setHistory ( array  $hist)

Definition at line 34 of file class.NavigationSessionRepository.php.

References ilSession\set().

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

Field Documentation

◆ KEY

const ILIAS\Navigation\NavigationSessionRepository::KEY = "il_nav_history"

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


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