ILIAS  release_8 Revision v8.19
All Data Structures Namespaces Files Functions Variables Modules Pages
class.TrackingManager.php
Go to the documentation of this file.
1 <?php
2 
3 declare(strict_types=1);
4 
22 
24 
29 {
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 
48  "mob",
49  $ref_id,
50  $mob_id,
51  $user_id
52  );
53 
54  // trigger LP update
56  \ilObject::_lookupObjId($ref_id),
57  $user_id
58  );
59  }
60 }
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
static _lookupObjId(int $ref_id)
$ref_id
Definition: ltiauth.php:67
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)
saveCompletion(int $mob_id, int $ref_id, int $user_id=0)
static _updateStatus(int $a_obj_id, int $a_usr_id, ?object $a_obj=null, bool $a_percentage=false, bool $a_force_raise=false)