ILIAS  release_7 Revision v7.30-3-g800a261c036
All Data Structures Namespaces Files Functions Variables Modules Pages
SkillUserService.php
Go to the documentation of this file.
1 <?php
2 
3 /* Copyright (c) 1998-2020 ILIAS open source, Extended GPL, see docs/LICENSE */
4 
5 namespace ILIAS\Skill\Service;
6 
12 {
16  protected $manager_service;
17 
21  protected $user_id;
22 
27  {
28  global $DIC;
29 
30  $this->user_id = $user_id;
31  $this->manager_service = ($manager_service)
33  : $DIC->skills()->internal()->manager();
34  }
35 
44  public function writeSkillLevel(
45  int $a_level_id,
46  int $a_trigger_ref_id,
47  int $a_tref_id = 0,
48  bool $a_self_eval = false,
49  string $a_unique_identifier = "",
50  float $a_next_level_fulfilment = 0.0
51  ) {
53  $this->manager_service->getUserLevelManager()->writeSkillLevel($user_id, $a_level_id, $a_trigger_ref_id,
54  $a_tref_id, $a_self_eval, $a_unique_identifier, $a_next_level_fulfilment);
55  }
56 
57  public function getProfiles()
58  {
59  // repo for ilSkillProfile needed
60  }
61 }
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)
Constructor.
global $DIC
Definition: goto.php:24