ILIAS
release_8 Revision v8.23
◀ ilDoc Overview
class.NavigationSessionRepository.php
Go to the documentation of this file.
1
<?php
2
3
declare(strict_types=1);
4
21
namespace
ILIAS\Navigation
;
22
26
class
NavigationSessionRepository
27
{
28
public
const
KEY
=
"il_nav_history"
;
29
30
public
function
__construct
()
31
{
32
}
33
34
public
function
setHistory
(array $hist): void
35
{
36
\ilSession::set
(self::KEY, serialize($hist));
37
}
38
39
public
function
getHistory
(): array
40
{
41
if
(\
ilSession::has
(self::KEY)) {
42
return
unserialize(\
ilSession::get
(self::KEY), [
'allowed_classes'
=>
false
]);
43
}
44
return
[];
45
}
46
}
ilSession\get
static get(string $a_var)
Definition:
class.ilSession.php:459
ILIAS\Navigation
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
Definition:
class.NavigationSessionRepository.php:21
ILIAS\Navigation\NavigationSessionRepository\setHistory
setHistory(array $hist)
Definition:
class.NavigationSessionRepository.php:34
ILIAS\Navigation\NavigationSessionRepository\__construct
__construct()
Definition:
class.NavigationSessionRepository.php:30
ilSession\has
static has($a_var)
Definition:
class.ilSession.php:464
ILIAS\Navigation\NavigationSessionRepository\KEY
const KEY
Definition:
class.NavigationSessionRepository.php:28
ILIAS\Navigation\NavigationSessionRepository\getHistory
getHistory()
Definition:
class.NavigationSessionRepository.php:39
ilSession\set
static set(string $a_var, $a_val)
Set a value.
Definition:
class.ilSession.php:451
ILIAS\Navigation\NavigationSessionRepository
Definition:
class.NavigationSessionRepository.php:26
Services
Navigation
classes
class.NavigationSessionRepository.php
Generated on Sun Aug 31 2025 22:02:27 for ILIAS by
1.8.13 (using
Doxyfile
)