ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
class.SkillUsageService.php
Go to the documentation of this file.
1<?php
2
19declare(strict_types=1);
20
21namespace ILIAS\Skill\Service;
22
24
29{
31
32 public function __construct(SkillInternalService $internal_service)
33 {
34 $this->usage_manager = $internal_service->manager()->getUsageManager();
35 }
36
37 public function addUsage(int $obj_id, int $skill_id, int $tref_id): void
38 {
39 $this->usage_manager->addUsage($obj_id, $skill_id, $tref_id);
40 }
41
42 public function removeUsage(int $obj_id, int $skill_id, int $tref_id): void
43 {
44 $this->usage_manager->removeUsage($obj_id, $skill_id, $tref_id);
45 }
46}
removeUsage(int $obj_id, int $skill_id, int $tref_id)
addUsage(int $obj_id, int $skill_id, int $tref_id)
__construct(SkillInternalService $internal_service)