ILIAS
trunk Revision v11.0_alpha-1689-g66c127b4ae8
◀ 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.TrackingManager.php
Go to the documentation of this file.
1
<?php
2
19
declare(strict_types=1);
20
21
namespace
ILIAS\MediaObjects\Tracking
;
22
23
use
ILIAS\MediaObjects\InternalDomainService
;
24
28
class
TrackingManager
29
{
30
protected
InternalDomainService
$domain
;
31
32
public
function
__construct
(
33
InternalDomainService
$domain
34
) {
35
$this->domain =
$domain
;
36
}
37
38
public
function
saveCompletion
(
39
int
$mob_id,
40
int
$ref_id
,
41
int
$user_id
= 0
42
): void {
43
if
(
$user_id
=== 0) {
44
$user_id
= $this->domain->user()->getId();
45
}
46
47
\ilChangeEvent::_recordReadEvent
(
48
"mob"
,
49
$ref_id,
50
$mob_id,
51
$user_id
52
);
53
54
// trigger LP update
55
\ilLPStatusWrapper::_updateStatus
(
56
\
ilObject::_lookupObjId
($ref_id),
57
$user_id
58
);
59
}
60
}
ILIAS\MediaObjects\Tracking\TrackingManager
Definition:
class.TrackingManager.php:28
ILIAS\MediaObjects\InternalDomainService
Definition:
class.InternalDomainService.php:34
$user_id
int $user_id
Definition:
trait.ilExAssignmentTypeGUIBase.php:38
ILIAS\MediaObjects\Tracking
Definition:
class.TrackingManager.php:21
InternalDomainService
ilObject\_lookupObjId
static _lookupObjId(int $ref_id)
Definition:
class.ilObject.php:923
$ref_id
$ref_id
Definition:
ltiauth.php:65
ILIAS\MediaObjects\Tracking\TrackingManager\__construct
__construct(InternalDomainService $domain)
Definition:
class.TrackingManager.php:32
ilChangeEvent\_recordReadEvent
static _recordReadEvent(string $a_type, int $a_ref_id, int $obj_id, int $usr_id, bool $isCatchupWriteEvents=true, $a_ext_rc=null, $a_ext_time=null)
Definition:
class.ilChangeEvent.php:117
ILIAS\MediaObjects\Tracking\TrackingManager\$domain
InternalDomainService $domain
Definition:
class.TrackingManager.php:30
ILIAS\MediaObjects\Tracking\TrackingManager\saveCompletion
saveCompletion(int $mob_id, int $ref_id, int $user_id=0)
Definition:
class.TrackingManager.php:38
ilLPStatusWrapper\_updateStatus
static _updateStatus(int $a_obj_id, int $a_usr_id, ?object $a_obj=null, bool $a_percentage=false, bool $a_force_raise=false)
Definition:
class.ilLPStatusWrapper.php:296
components
ILIAS
MediaObjects
Tracking
class.TrackingManager.php
Generated on Wed Apr 2 2025 23:03:13 for ILIAS by
1.8.13 (using
Doxyfile
)