ILIAS
trunk Revision v11.0_alpha-2662-g519ff7d528f
◀ ilDoc Overview
class.NavigationSessionRepository.php
Go to the documentation of this file.
1
<?php
2
19
declare(strict_types=1);
20
21
namespace
ILIAS\Repository\LastVisited
;
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:388
ILIAS\Repository\LastVisited\NavigationSessionRepository
Definition:
class.NavigationSessionRepository.php:26
ILIAS\Repository\LastVisited\NavigationSessionRepository\__construct
__construct()
Definition:
class.NavigationSessionRepository.php:30
ILIAS\Repository\LastVisited
Definition:
class.NavigationSessionRepository.php:21
ilSession\has
static has($a_var)
Definition:
class.ilSession.php:393
ILIAS\Repository\LastVisited\NavigationSessionRepository\getHistory
getHistory()
Definition:
class.NavigationSessionRepository.php:39
ILIAS\Repository\LastVisited\NavigationSessionRepository\KEY
const KEY
Definition:
class.NavigationSessionRepository.php:28
ILIAS\Repository\LastVisited\NavigationSessionRepository\setHistory
setHistory(array $hist)
Definition:
class.NavigationSessionRepository.php:34
ilSession\set
static set(string $a_var, $a_val)
Set a value.
Definition:
class.ilSession.php:380
components
ILIAS
Repository
LastVisited
class.NavigationSessionRepository.php
Generated on Wed Sep 3 2025 23:03:40 for ILIAS by
1.8.13 (using
Doxyfile
)