ILIAS  release_10 Revision v10.1-43-ga1241a92c2f
ILIAS\Skill\Service\SkillProfileService Class Reference

Skill profile service. More...

+ Collaboration diagram for ILIAS\Skill\Service\SkillProfileService:

Public Member Functions

 __construct (SkillInternalService $internal_service)
 
 getProfile (int $profile_id)
 
 deleteProfile (int $profile_id)
 
 lookupProfileTitle (int $profile_id)
 
 lookupProfileRefId (int $profile_id)
 
 getSkillLevels (int $profile_id)
 
 getProfilesOfUser (int $user_id)
 
 getAllGlobalProfiles ()
 
 getAllProfilesOfRole (int $role_id)
 Get global and local profiles of a role. More...
 
 getGlobalProfilesOfRole (int $role_id)
 
 getLocalProfilesOfRole (int $role_id)
 
 addRoleToProfile (int $profile_id, int $role_id)
 
 removeRoleFromProfile (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. More...
 
 writeCompletionEntryForAllProfiles (int $user_id)
 Write profile completion entries (fulfilled or non-fulfilled) of user for all profiles. More...
 

Protected Attributes

Profile SkillProfileManager $profile_manager
 
Profile SkillProfileCompletionManager $profile_completion_manager
 

Detailed Description

Skill profile service.

Author
famul.nosp@m.a@le.nosp@m.ifos..nosp@m.de

Definition at line 30 of file class.SkillProfileService.php.

Constructor & Destructor Documentation

◆ __construct()

ILIAS\Skill\Service\SkillProfileService::__construct ( SkillInternalService  $internal_service)

Definition at line 35 of file class.SkillProfileService.php.

References ILIAS\Skill\Service\SkillInternalService\manager().

36  {
37  $this->profile_manager = $internal_service->manager()->getProfileManager();
38  $this->profile_completion_manager = $internal_service->manager()->getProfileCompletionManager();
39  }
+ Here is the call graph for this function:

Member Function Documentation

◆ addRoleToProfile()

ILIAS\Skill\Service\SkillProfileService::addRoleToProfile ( int  $profile_id,
int  $role_id 
)

Definition at line 120 of file class.SkillProfileService.php.

120  : void
121  {
122  $this->profile_manager->addRoleToProfile($profile_id, $role_id);
123  }

◆ deleteProfile()

ILIAS\Skill\Service\SkillProfileService::deleteProfile ( int  $profile_id)

Definition at line 49 of file class.SkillProfileService.php.

49  : void
50  {
51  $this->profile_manager->delete($profile_id);
52  $this->profile_completion_manager->deleteEntriesForProfile($profile_id);
53  }

◆ getAllGlobalProfiles()

ILIAS\Skill\Service\SkillProfileService::getAllGlobalProfiles ( )
Returns
Profile[]

Definition at line 86 of file class.SkillProfileService.php.

86  : array
87  {
88  $profiles = $this->profile_manager->getAllGlobalProfiles();
89  return $profiles;
90  }

◆ getAllProfilesOfRole()

ILIAS\Skill\Service\SkillProfileService::getAllProfilesOfRole ( int  $role_id)

Get global and local profiles of a role.

Returns
Profile[]

Definition at line 96 of file class.SkillProfileService.php.

96  : array
97  {
98  $profiles = $this->profile_manager->getAllProfilesOfRole($role_id);
99  return $profiles;
100  }

◆ getGlobalProfilesOfRole()

ILIAS\Skill\Service\SkillProfileService::getGlobalProfilesOfRole ( int  $role_id)
Returns
Profile[]

Definition at line 105 of file class.SkillProfileService.php.

105  : array
106  {
107  $profiles = $this->profile_manager->getGlobalProfilesOfRole($role_id);
108  return $profiles;
109  }

◆ getLocalProfilesOfRole()

ILIAS\Skill\Service\SkillProfileService::getLocalProfilesOfRole ( int  $role_id)
Returns
Profile[]

Definition at line 114 of file class.SkillProfileService.php.

114  : array
115  {
116  $profiles = $this->profile_manager->getLocalProfilesOfRole($role_id);
117  return $profiles;
118  }

◆ getProfile()

ILIAS\Skill\Service\SkillProfileService::getProfile ( int  $profile_id)
Exceptions

Definition at line 44 of file class.SkillProfileService.php.

44  : Profile\SkillProfile
45  {
46  return $this->profile_manager->getProfile($profile_id);
47  }

◆ getProfilesOfUser()

ILIAS\Skill\Service\SkillProfileService::getProfilesOfUser ( int  $user_id)
Returns
Profile[]

Definition at line 78 of file class.SkillProfileService.php.

78  : array
79  {
80  return $this->profile_manager->getProfilesOfUser($user_id);
81  }

◆ getSkillLevels()

ILIAS\Skill\Service\SkillProfileService::getSkillLevels ( int  $profile_id)
Returns
Profile[]

Definition at line 70 of file class.SkillProfileService.php.

70  : array
71  {
72  return $this->profile_manager->getSkillLevels($profile_id);
73  }

◆ lookupProfileRefId()

ILIAS\Skill\Service\SkillProfileService::lookupProfileRefId ( int  $profile_id)

Definition at line 61 of file class.SkillProfileService.php.

References $ref_id.

61  : int
62  {
63  $ref_id = $this->profile_manager->lookupRefId($profile_id);
64  return $ref_id;
65  }
$ref_id
Definition: ltiauth.php:66

◆ lookupProfileTitle()

ILIAS\Skill\Service\SkillProfileService::lookupProfileTitle ( int  $profile_id)

Definition at line 55 of file class.SkillProfileService.php.

55  : string
56  {
57  $title = $this->profile_manager->lookupTitle($profile_id);
58  return $title;
59  }

◆ removeRoleFromProfile()

ILIAS\Skill\Service\SkillProfileService::removeRoleFromProfile ( int  $profile_id,
int  $role_id 
)

Definition at line 125 of file class.SkillProfileService.php.

125  : void
126  {
127  $this->profile_manager->removeRoleFromProfile($profile_id, $role_id);
128  }

◆ updateProfileRefIdAfterImport()

ILIAS\Skill\Service\SkillProfileService::updateProfileRefIdAfterImport ( int  $profile_id,
int  $new_ref_id 
)

Update the old ref id with the new ref id after import.

Definition at line 133 of file class.SkillProfileService.php.

133  : void
134  {
135  $this->profile_manager->updateRefIdAfterImport($profile_id, $new_ref_id);
136  }

◆ writeCompletionEntryForAllProfiles()

ILIAS\Skill\Service\SkillProfileService::writeCompletionEntryForAllProfiles ( int  $user_id)

Write profile completion entries (fulfilled or non-fulfilled) of user for all profiles.

Definition at line 141 of file class.SkillProfileService.php.

141  : void
142  {
143  $this->profile_completion_manager->writeCompletionEntryForAllProfilesOfUser($user_id);
144  }

Field Documentation

◆ $profile_completion_manager

Profile SkillProfileCompletionManager ILIAS\Skill\Service\SkillProfileService::$profile_completion_manager
protected

Definition at line 33 of file class.SkillProfileService.php.

◆ $profile_manager

Profile SkillProfileManager ILIAS\Skill\Service\SkillProfileService::$profile_manager
protected

Definition at line 32 of file class.SkillProfileService.php.


The documentation for this class was generated from the following file: