ILIAS
trunk Revision v11.0_alpha-1723-g8e69f309bab
◀ ilDoc Overview
Main Page
Related Pages
Modules
+
Namespaces
Namespace List
+
Namespace Members
+
All
$
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
+
Functions
_
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
r
s
t
u
v
w
x
+
Variables
$
c
e
g
h
j
l
m
p
s
t
u
v
+
Enumerations
a
c
e
f
i
j
l
m
n
o
p
r
s
t
u
v
z
+
Enumerator
a
c
d
e
f
g
i
l
m
n
o
p
q
s
t
u
v
y
+
Data Structures
Data Structures
Data Structure Index
Class Hierarchy
+
Data Fields
+
All
$
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Ö
+
Functions
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
+
Variables
$
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Ö
Enumerations
Enumerator
+
Files
File List
+
Globals
+
All
$
a
b
c
d
e
f
g
h
i
l
m
n
o
p
r
s
t
u
v
z
+
Functions
a
b
c
d
e
f
g
h
i
m
n
p
r
s
t
u
v
+
Variables
$
a
c
e
g
h
i
m
n
o
p
r
s
t
u
v
z
Enumerations
Enumerator
Examples
•
All
Data Structures
Namespaces
Files
Functions
Variables
Enumerations
Enumerator
Modules
Pages
class.AwarenessSessionRepository.php
Go to the documentation of this file.
1
<?php
2
19
declare(strict_types=1);
20
21
namespace
ILIAS\Awareness
;
22
26
class
AwarenessSessionRepository
27
{
28
public
const
KEY_BASE
=
"awrn_"
;
29
30
public
function
__construct
()
31
{
32
}
33
34
public
function
setOnlineUsersTS
(
string
$ts): void
35
{
36
\ilSession::set
(self::KEY_BASE .
"_online_users_ts"
, $ts);
37
}
38
39
public
function
getOnlineUsersTS
(): 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
}
46
47
public
function
setLastUpdate
(
int
$val): void
48
{
49
$key = self::KEY_BASE .
"last_update"
;
50
\ilSession::set
($key, (
string
) $val);
51
}
52
53
public
function
getLastUpdate
():
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
}
61
62
public
function
setCount
(
int
$val): void
63
{
64
$key = self::KEY_BASE .
"cnt"
;
65
\ilSession::set
($key, (
string
) $val);
66
}
67
68
public
function
getCount
():
int
69
{
70
$key = self::KEY_BASE .
"cnt"
;
71
if
(\
ilSession::has
($key)) {
72
return
(
int
)
\ilSession::get
($key);
73
}
74
return
0;
75
}
76
77
public
function
setHighlightCount
(
int
$val): void
78
{
79
$key = self::KEY_BASE .
"hcnt"
;
80
\ilSession::set
($key, (
string
) $val);
81
}
82
83
public
function
getHighlightCount
():
int
84
{
85
$key = self::KEY_BASE .
"hcnt"
;
86
if
(\
ilSession::has
($key)) {
87
return
(
int
)
\ilSession::get
($key);
88
}
89
return
0;
90
}
91
}
ilSession\get
static get(string $a_var)
Definition:
class.ilSession.php:401
ILIAS\Awareness\AwarenessSessionRepository\getLastUpdate
getLastUpdate()
Definition:
class.AwarenessSessionRepository.php:53
ILIAS\Awareness\AwarenessSessionRepository\setCount
setCount(int $val)
Definition:
class.AwarenessSessionRepository.php:62
ILIAS\Awareness
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
Definition:
class.AdminManager.php:21
ILIAS\Awareness\AwarenessSessionRepository\__construct
__construct()
Definition:
class.AwarenessSessionRepository.php:30
ILIAS\Awareness\AwarenessSessionRepository\getCount
getCount()
Definition:
class.AwarenessSessionRepository.php:68
ILIAS\Awareness\AwarenessSessionRepository\KEY_BASE
const KEY_BASE
Definition:
class.AwarenessSessionRepository.php:28
ILIAS\GlobalScreen\get
get(string $class_name)
Definition:
SingletonTrait.php:32
ILIAS\Awareness\AwarenessSessionRepository\setLastUpdate
setLastUpdate(int $val)
Definition:
class.AwarenessSessionRepository.php:47
ilSession\has
static has($a_var)
Definition:
class.ilSession.php:406
ILIAS\Awareness\AwarenessSessionRepository
Definition:
class.AwarenessSessionRepository.php:26
ILIAS\Awareness\AwarenessSessionRepository\getHighlightCount
getHighlightCount()
Definition:
class.AwarenessSessionRepository.php:83
ILIAS\Awareness\AwarenessSessionRepository\setOnlineUsersTS
setOnlineUsersTS(string $ts)
Definition:
class.AwarenessSessionRepository.php:34
ILIAS\Awareness\AwarenessSessionRepository\setHighlightCount
setHighlightCount(int $val)
Definition:
class.AwarenessSessionRepository.php:77
ILIAS\Awareness\AwarenessSessionRepository\getOnlineUsersTS
getOnlineUsersTS()
Definition:
class.AwarenessSessionRepository.php:39
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:393
components
ILIAS
Awareness
classes
class.AwarenessSessionRepository.php
Generated on Sun Apr 6 2025 23:02:27 for ILIAS by
1.8.13 (using
Doxyfile
)