ILIAS  release_9 Revision v9.13-25-g2c18ec4c24f
class.SkillUsageService.php
Go to the documentation of this file.
1 <?php
2 
3 declare(strict_types=1);
4 
22 namespace ILIAS\Skill\Service;
23 
25 
30 {
32 
33  public function __construct(SkillInternalService $internal_service)
34  {
35  $this->usage_manager = $internal_service->manager()->getUsageManager();
36  }
37 
38  public function addUsage(int $obj_id, int $skill_id, int $tref_id): void
39  {
40  $this->usage_manager->addUsage($obj_id, $skill_id, $tref_id);
41  }
42 
43  public function removeUsage(int $obj_id, int $skill_id, int $tref_id): void
44  {
45  $this->usage_manager->removeUsage($obj_id, $skill_id, $tref_id);
46  }
47 }
removeUsage(int $obj_id, int $skill_id, int $tref_id)
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
__construct(SkillInternalService $internal_service)
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
addUsage(int $obj_id, int $skill_id, int $tref_id)