ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
class.SkillUserService.php
Go to the documentation of this file.
1<?php
2
19declare(strict_types=1);
20
21namespace ILIAS\Skill\Service;
22
28{
30 protected int $user_id = 0;
31
33 {
34 global $DIC;
35
36 $this->user_id = $user_id;
37 $this->manager_service = ($manager_service)
38 ?: $DIC->skills()->internal()->manager();
39 }
40
41 public function writeSkillLevel(
42 int $a_level_id,
43 int $a_trigger_ref_id,
44 int $a_tref_id = 0,
45 bool $a_self_eval = false,
46 string $a_unique_identifier = "",
47 float $a_next_level_fulfilment = 0.0
48 ): void {
49 $user_id = $this->user_id;
50 $this->manager_service->getUserLevelManager()->writeSkillLevel(
52 $a_level_id,
53 $a_trigger_ref_id,
54 $a_tref_id,
55 $a_self_eval,
56 $a_unique_identifier,
57 $a_next_level_fulfilment
58 );
59 }
60
61 public function getProfiles()
62 {
63 // repo for ilSkillProfile needed
64 }
65}
SkillInternalManagerService $manager_service
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)
__construct(int $user_id, ?SkillInternalManagerService $manager_service=null)
global $DIC
Definition: shib_login.php:26