ILIAS  trunk Revision v11.0_alpha-2662-g519ff7d528f
ILIAS\News\Dashboard\DashboardSessionRepository Class Reference
+ Collaboration diagram for ILIAS\News\Dashboard\DashboardSessionRepository:

Public Member Functions

 __construct ()
 
 setDashboardNewsPeriod (int $period)
 
 getDashboardNewsPeriod ()
 

Data Fields

const KEY_BASE = "news"
 

Detailed Description

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

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

Constructor & Destructor Documentation

◆ __construct()

ILIAS\News\Dashboard\DashboardSessionRepository::__construct ( )

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

31  {
32  }

Member Function Documentation

◆ getDashboardNewsPeriod()

ILIAS\News\Dashboard\DashboardSessionRepository::getDashboardNewsPeriod ( )

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

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

39  : 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  }
static get(string $a_var)
static has($a_var)
+ Here is the call graph for this function:

◆ setDashboardNewsPeriod()

ILIAS\News\Dashboard\DashboardSessionRepository::setDashboardNewsPeriod ( int  $period)

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

References ilSession\set().

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

Field Documentation

◆ KEY_BASE

const ILIAS\News\Dashboard\DashboardSessionRepository::KEY_BASE = "news"

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


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