ILIAS
release_8 Revision v8.19
◀ ilDoc Overview
Main Page
Related Pages
Modules
+
Namespaces
Namespace List
+
Namespace Members
+
All
$
_
a
b
c
d
e
f
g
h
i
j
l
m
n
o
p
r
s
t
u
v
w
x
+
Functions
_
a
b
c
d
e
f
g
h
i
l
m
n
o
p
r
s
t
u
v
w
x
+
Variables
$
a
b
c
d
e
f
g
h
j
l
m
p
s
t
u
+
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
Ö
+
Files
File List
+
Globals
+
All
$
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
r
s
t
u
v
w
x
z
+
Functions
_
a
b
c
d
e
g
h
i
m
n
p
r
s
t
u
v
x
+
Variables
$
a
c
d
e
f
g
h
i
j
k
l
m
n
o
p
r
s
t
u
v
w
z
Examples
•
All
Data Structures
Namespaces
Files
Functions
Variables
Modules
Pages
class.AwarenessSessionRepository.php
Go to the documentation of this file.
1
<?php
2
3
declare(strict_types=1);
4
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:459
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\Awareness\AwarenessSessionRepository\setLastUpdate
setLastUpdate(int $val)
Definition:
class.AwarenessSessionRepository.php:47
ILIAS\LTI\ToolProvider\$key
string $key
Consumer key/client ID value.
Definition:
System.php:193
ilSession\has
static has($a_var)
Definition:
class.ilSession.php:464
ILIAS\Repository\get
get(string $key, Refinery\Transformation $t)
Get passed parameter, if not data passed, get key from http request.
Definition:
trait.BaseGUIRequest.php:209
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:451
Services
Awareness
classes
class.AwarenessSessionRepository.php
Generated on Sun Apr 13 2025 22:01:54 for ILIAS by
1.8.13 (using
Doxyfile
)