ILIAS  release_8 Revision v8.24
class.TrackingManager.php
Go to the documentation of this file.
1<?php
2
3declare(strict_types=1);
4
22
24
29{
31
32 public function __construct(
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
48 "mob",
49 $ref_id,
50 $mob_id,
51 $user_id
52 );
53
54 // trigger LP update
57 $user_id
58 );
59 }
60}
saveCompletion(int $mob_id, int $ref_id, int $user_id=0)
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)
static _updateStatus(int $a_obj_id, int $a_usr_id, ?object $a_obj=null, bool $a_percentage=false, bool $a_force_raise=false)
static _lookupObjId(int $ref_id)
if(!file_exists(getcwd() . '/ilias.ini.php'))
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
Definition: confirmReg.php:20
$ref_id
Definition: ltiauth.php:67
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...