ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
ILIAS\Awareness\AwarenessSessionRepository Class Reference
+ Collaboration diagram for ILIAS\Awareness\AwarenessSessionRepository:

Public Member Functions

 __construct ()
 
 setOnlineUsersTS (string $ts)
 
 getOnlineUsersTS ()
 
 setLastUpdate (int $val)
 
 getLastUpdate ()
 
 setCount (int $val)
 
 getCount ()
 
 setHighlightCount (int $val)
 
 getHighlightCount ()
 

Data Fields

const KEY_BASE = "awrn_"
 

Detailed Description

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

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

Constructor & Destructor Documentation

◆ __construct()

ILIAS\Awareness\AwarenessSessionRepository::__construct ( )

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

31 {
32 }

Member Function Documentation

◆ getCount()

ILIAS\Awareness\AwarenessSessionRepository::getCount ( )

Definition at line 68 of file class.AwarenessSessionRepository.php.

68 : int
69 {
70 $key = self::KEY_BASE . "cnt";
71 if (\ilSession::has($key)) {
72 return (int) \ilSession::get($key);
73 }
74 return 0;
75 }
static get(string $a_var)
static has($a_var)

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

+ Here is the call graph for this function:

◆ getHighlightCount()

ILIAS\Awareness\AwarenessSessionRepository::getHighlightCount ( )

Definition at line 83 of file class.AwarenessSessionRepository.php.

83 : int
84 {
85 $key = self::KEY_BASE . "hcnt";
86 if (\ilSession::has($key)) {
87 return (int) \ilSession::get($key);
88 }
89 return 0;
90 }

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

+ Here is the call graph for this function:

◆ getLastUpdate()

ILIAS\Awareness\AwarenessSessionRepository::getLastUpdate ( )

Definition at line 53 of file class.AwarenessSessionRepository.php.

53 : int
54 {
55 $key = self::KEY_BASE . "last_update";
56 if (\ilSession::has($key)) {
57 return (int) \ilSession::get($key);
58 }
59 return 0;
60 }

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

+ Here is the call graph for this function:

◆ getOnlineUsersTS()

ILIAS\Awareness\AwarenessSessionRepository::getOnlineUsersTS ( )

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

39 : string
40 {
41 if (\ilSession::has(self::KEY_BASE . "_online_users_ts")) {
42 return \ilSession::get(self::KEY_BASE . "_online_users_ts");
43 }
44 return "";
45 }
get(string $class_name)

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

+ Here is the call graph for this function:

◆ setCount()

ILIAS\Awareness\AwarenessSessionRepository::setCount ( int  $val)

Definition at line 62 of file class.AwarenessSessionRepository.php.

62 : void
63 {
64 $key = self::KEY_BASE . "cnt";
65 \ilSession::set($key, (string) $val);
66 }
static set(string $a_var, $a_val)
Set a value.

References ilSession\set().

+ Here is the call graph for this function:

◆ setHighlightCount()

ILIAS\Awareness\AwarenessSessionRepository::setHighlightCount ( int  $val)

Definition at line 77 of file class.AwarenessSessionRepository.php.

77 : void
78 {
79 $key = self::KEY_BASE . "hcnt";
80 \ilSession::set($key, (string) $val);
81 }

References ilSession\set().

+ Here is the call graph for this function:

◆ setLastUpdate()

ILIAS\Awareness\AwarenessSessionRepository::setLastUpdate ( int  $val)

Definition at line 47 of file class.AwarenessSessionRepository.php.

47 : void
48 {
49 $key = self::KEY_BASE . "last_update";
50 \ilSession::set($key, (string) $val);
51 }

References ilSession\set().

+ Here is the call graph for this function:

◆ setOnlineUsersTS()

ILIAS\Awareness\AwarenessSessionRepository::setOnlineUsersTS ( string  $ts)

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

34 : void
35 {
36 \ilSession::set(self::KEY_BASE . "_online_users_ts", $ts);
37 }

References ilSession\set().

+ Here is the call graph for this function:

Field Documentation

◆ KEY_BASE

const ILIAS\Awareness\AwarenessSessionRepository::KEY_BASE = "awrn_"

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


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