ILIAS  release_8 Revision v8.19
All Data Structures Namespaces Files Functions Variables Modules Pages
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.

References ILIAS\LTI\ToolProvider\$key, ilSession\get(), and ilSession\has().

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)
string $key
Consumer key/client ID value.
Definition: System.php:193
static has($a_var)
+ Here is the call graph for this function:

◆ getHighlightCount()

ILIAS\Awareness\AwarenessSessionRepository::getHighlightCount ( )

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

References ILIAS\LTI\ToolProvider\$key, ilSession\get(), and ilSession\has().

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  }
static get(string $a_var)
string $key
Consumer key/client ID value.
Definition: System.php:193
static has($a_var)
+ Here is the call graph for this function:

◆ getLastUpdate()

ILIAS\Awareness\AwarenessSessionRepository::getLastUpdate ( )

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

References ILIAS\LTI\ToolProvider\$key, ilSession\get(), and ilSession\has().

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  }
static get(string $a_var)
string $key
Consumer key/client ID value.
Definition: System.php:193
static has($a_var)
+ Here is the call graph for this function:

◆ getOnlineUsersTS()

ILIAS\Awareness\AwarenessSessionRepository::getOnlineUsersTS ( )

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

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

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  }
static has($a_var)
get(string $key, Refinery\Transformation $t)
Get passed parameter, if not data passed, get key from http request.
+ Here is the call graph for this function:

◆ setCount()

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

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

References ILIAS\LTI\ToolProvider\$key, and ilSession\set().

62  : void
63  {
64  $key = self::KEY_BASE . "cnt";
65  \ilSession::set($key, (string) $val);
66  }
string $key
Consumer key/client ID value.
Definition: System.php:193
static set(string $a_var, $a_val)
Set a value.
+ Here is the call graph for this function:

◆ setHighlightCount()

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

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

References ILIAS\LTI\ToolProvider\$key, and ilSession\set().

77  : void
78  {
79  $key = self::KEY_BASE . "hcnt";
80  \ilSession::set($key, (string) $val);
81  }
string $key
Consumer key/client ID value.
Definition: System.php:193
static set(string $a_var, $a_val)
Set a value.
+ Here is the call graph for this function:

◆ setLastUpdate()

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

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

References ILIAS\LTI\ToolProvider\$key, and ilSession\set().

47  : void
48  {
49  $key = self::KEY_BASE . "last_update";
50  \ilSession::set($key, (string) $val);
51  }
string $key
Consumer key/client ID value.
Definition: System.php:193
static set(string $a_var, $a_val)
Set a value.
+ Here is the call graph for this function:

◆ setOnlineUsersTS()

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

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

References ilSession\set().

34  : void
35  {
36  \ilSession::set(self::KEY_BASE . "_online_users_ts", $ts);
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\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: