ILIAS  trunk Revision v11.0_alpha-1689-g66c127b4ae8
All Data Structures Namespaces Files Functions Variables Enumerations Enumerator Modules Pages
class.SkillPersonalService.php
Go to the documentation of this file.
1 <?php
2 
19 declare(strict_types=1);
20 
21 namespace ILIAS\Skill\Service;
22 
24 
29 {
33 
34  public function __construct(SkillInternalService $internal_service)
35  {
36  $this->personal_manager = $internal_service->manager()->getPersonalSkillManager();
37  $this->ass_mat_manager = $internal_service->manager()->getAssignedMaterialManager();
38  $this->self_eval_manager = $internal_service->manager()->getSelfEvaluationManager();
39  }
40 
44  public function getSelectedUserSkills(int $user_id): array
45  {
46  return $this->personal_manager->getSelectedUserSkills($user_id);
47  }
48 
49  public function addPersonalSkill(int $user_id, int $skill_node_id): void
50  {
51  $this->personal_manager->addPersonalSkill($user_id, $skill_node_id);
52  }
53 
58  public function getAssignedMaterials(int $user_id, int $tref_id, int $level_id): array
59  {
60  return $this->ass_mat_manager->getAssignedMaterials($user_id, $tref_id, $level_id);
61  }
62 }
getAssignedMaterials(int $user_id, int $tref_id, int $level_id)
Get assigned materials (for a skill level and user)
Personal AssignedMaterialManager $ass_mat_manager
addPersonalSkill(int $user_id, int $skill_node_id)
__construct(SkillInternalService $internal_service)