3 declare(strict_types=1);
37 $this->profile_manager = $internal_service->
manager()->getProfileManager();
38 $this->profile_completion_manager = $internal_service->
manager()->getProfileCompletionManager();
46 return $this->profile_manager->getProfile($profile_id);
51 $this->profile_manager->delete($profile_id);
52 $this->profile_completion_manager->deleteEntriesForProfile($profile_id);
57 $title = $this->profile_manager->lookupTitle($profile_id);
63 $ref_id = $this->profile_manager->lookupRefId($profile_id);
72 return $this->profile_manager->getSkillLevels($profile_id);
80 return $this->profile_manager->getProfilesOfUser($user_id);
88 $profiles = $this->profile_manager->getAllGlobalProfiles();
98 $profiles = $this->profile_manager->getAllProfilesOfRole($role_id);
107 $profiles = $this->profile_manager->getGlobalProfilesOfRole($role_id);
116 $profiles = $this->profile_manager->getLocalProfilesOfRole($role_id);
122 $this->profile_manager->addRoleToProfile($profile_id, $role_id);
127 $this->profile_manager->removeRoleFromProfile($profile_id, $role_id);
135 $this->profile_manager->updateRefIdAfterImport($profile_id, $new_ref_id);
143 $this->profile_completion_manager->writeCompletionEntryForAllProfilesOfUser($user_id);
getGlobalProfilesOfRole(int $role_id)
lookupProfileRefId(int $profile_id)
addRoleToProfile(int $profile_id, int $role_id)
updateProfileRefIdAfterImport(int $profile_id, int $new_ref_id)
Update the old ref id with the new ref id after import.
lookupProfileTitle(int $profile_id)
getAllProfilesOfRole(int $role_id)
Get global and local profiles of a role.
getSkillLevels(int $profile_id)
deleteProfile(int $profile_id)
removeRoleFromProfile(int $profile_id, int $role_id)
getProfilesOfUser(int $user_id)
getProfile(int $profile_id)
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
Profile SkillProfileManager $profile_manager
Profile SkillProfileCompletionManager $profile_completion_manager
writeCompletionEntryForAllProfiles(int $user_id)
Write profile completion entries (fulfilled or non-fulfilled) of user for all profiles.
Manages skill profile completion.
getLocalProfilesOfRole(int $role_id)
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
__construct(SkillInternalService $internal_service)