ILIAS
trunk Revision v11.0_alpha-2662-g519ff7d528f
◀ ilDoc Overview
class.DashboardSessionRepository.php
Go to the documentation of this file.
1
<?php
2
19
declare(strict_types=1);
20
21
namespace
ILIAS\News\Dashboard
;
22
26
class
DashboardSessionRepository
27
{
28
public
const
KEY_BASE
=
"news"
;
29
30
public
function
__construct
()
31
{
32
}
33
34
public
function
setDashboardNewsPeriod
(
int
$period): void
35
{
36
\ilSession::set
(self::KEY_BASE .
"dash_news_per"
, (
string
) $period);
37
}
38
39
public
function
getDashboardNewsPeriod
():
int
40
{
41
if
(\
ilSession::has
(self::KEY_BASE .
"dash_news_per"
)) {
42
return
(
int
)
\ilSession::get
(self::KEY_BASE .
"dash_news_per"
);
43
}
44
return
0;
45
}
46
}
ilSession\get
static get(string $a_var)
Definition:
class.ilSession.php:388
ILIAS\News\Dashboard\DashboardSessionRepository\__construct
__construct()
Definition:
class.DashboardSessionRepository.php:30
ILIAS\News\Dashboard
Definition:
class.DashboardNewsManager.php:21
ILIAS\News\Dashboard\DashboardSessionRepository\setDashboardNewsPeriod
setDashboardNewsPeriod(int $period)
Definition:
class.DashboardSessionRepository.php:34
ilSession\has
static has($a_var)
Definition:
class.ilSession.php:393
ILIAS\News\Dashboard\DashboardSessionRepository\getDashboardNewsPeriod
getDashboardNewsPeriod()
Definition:
class.DashboardSessionRepository.php:39
ILIAS\News\Dashboard\DashboardSessionRepository
Definition:
class.DashboardSessionRepository.php:26
ILIAS\News\Dashboard\DashboardSessionRepository\KEY_BASE
const KEY_BASE
Definition:
class.DashboardSessionRepository.php:28
ILIAS\Repository\int
int(string $key)
Definition:
trait.BaseGUIRequest.php:61
ilSession\set
static set(string $a_var, $a_val)
Set a value.
Definition:
class.ilSession.php:380
components
ILIAS
News
Dashboard
class.DashboardSessionRepository.php
Generated on Wed Sep 3 2025 23:03:33 for ILIAS by
1.8.13 (using
Doxyfile
)