ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
class.TrackingManager.php
Go to the documentation of this file.
1<?php
2
19declare(strict_types=1);
20
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,
52 );
53
54 // trigger LP update
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)
$ref_id
Definition: ltiauth.php:66
if(!file_exists('../ilias.ini.php'))