ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
ILIAS\Repository\LastVisited\NavigationSessionRepository Class Reference
+ Collaboration diagram for ILIAS\Repository\LastVisited\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\Repository\LastVisited\NavigationSessionRepository::__construct ( )

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

31 {
32 }

Member Function Documentation

◆ getHistory()

ILIAS\Repository\LastVisited\NavigationSessionRepository::getHistory ( )

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

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)

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

+ Here is the call graph for this function:

◆ setHistory()

ILIAS\Repository\LastVisited\NavigationSessionRepository::setHistory ( array  $hist)

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

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

References ilSession\set().

+ Here is the call graph for this function:

Field Documentation

◆ KEY

const ILIAS\Repository\LastVisited\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: