ILIAS  release_9 Revision v9.13-25-g2c18ec4c24f
class.SkillUserService.php
Go to the documentation of this file.
1 <?php
2 
3 declare(strict_types=1);
4 
22 namespace ILIAS\Skill\Service;
23 
29 {
31  protected int $user_id = 0;
32 
33  public function __construct(int $user_id, SkillInternalManagerService $manager_service = null)
34  {
35  global $DIC;
36 
37  $this->user_id = $user_id;
38  $this->manager_service = ($manager_service)
39  ?: $DIC->skills()->internal()->manager();
40  }
41 
42  public function writeSkillLevel(
43  int $a_level_id,
44  int $a_trigger_ref_id,
45  int $a_tref_id = 0,
46  bool $a_self_eval = false,
47  string $a_unique_identifier = "",
48  float $a_next_level_fulfilment = 0.0
49  ): void {
50  $user_id = $this->user_id;
51  $this->manager_service->getUserLevelManager()->writeSkillLevel(
52  $user_id,
53  $a_level_id,
54  $a_trigger_ref_id,
55  $a_tref_id,
56  $a_self_eval,
57  $a_unique_identifier,
58  $a_next_level_fulfilment
59  );
60  }
61 
62  public function getProfiles()
63  {
64  // repo for ilSkillProfile needed
65  }
66 }
writeSkillLevel(int $a_level_id, int $a_trigger_ref_id, int $a_tref_id=0, bool $a_self_eval=false, string $a_unique_identifier="", float $a_next_level_fulfilment=0.0)
SkillInternalManagerService $manager_service
global $DIC
Definition: feed.php:28
__construct(int $user_id, SkillInternalManagerService $manager_service=null)
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...