ILIAS  release_8 Revision v8.24
class.SkillUserService.php
Go to the documentation of this file.
1<?php
2
20namespace ILIAS\Skill\Service;
21
27{
29 protected int $user_id = 0;
30
32 {
33 global $DIC;
34
35 $this->user_id = $user_id;
36 $this->manager_service = ($manager_service)
37 ?: $DIC->skills()->internal()->manager();
38 }
39
40 public function writeSkillLevel(
41 int $a_level_id,
42 int $a_trigger_ref_id,
43 int $a_tref_id = 0,
44 bool $a_self_eval = false,
45 string $a_unique_identifier = "",
46 float $a_next_level_fulfilment = 0.0
47 ): void {
48 $user_id = $this->user_id;
49 $this->manager_service->getUserLevelManager()->writeSkillLevel(
51 $a_level_id,
52 $a_trigger_ref_id,
53 $a_tref_id,
54 $a_self_eval,
55 $a_unique_identifier,
56 $a_next_level_fulfilment
57 );
58 }
59
60 public function getProfiles()
61 {
62 // repo for ilSkillProfile needed
63 }
64}
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: feed.php:28
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...