ILIAS  trunk Revision v11.0_alpha-1811-gd2d5443e411
All Data Structures Namespaces Files Functions Variables Enumerations Enumerator Modules Pages
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 29 of file class.SkillProfileService.php.

Constructor & Destructor Documentation

◆ __construct()

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

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

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

35  {
36  $this->profile_manager = $internal_service->manager()->getProfileManager();
37  $this->profile_completion_manager = $internal_service->manager()->getProfileCompletionManager();
38  }
+ 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 119 of file class.SkillProfileService.php.

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

◆ deleteProfile()

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

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

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

◆ getAllGlobalProfiles()

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

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

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

◆ getAllProfilesOfRole()

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

Get global and local profiles of a role.

Returns
Profile[]

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

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

◆ getGlobalProfilesOfRole()

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

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

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

◆ getLocalProfilesOfRole()

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

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

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

◆ getProfile()

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

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

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

◆ getProfilesOfUser()

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

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

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

◆ getSkillLevels()

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

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

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

◆ lookupProfileRefId()

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

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

References $ref_id.

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

◆ lookupProfileTitle()

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

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

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

◆ removeRoleFromProfile()

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

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

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

◆ 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 132 of file class.SkillProfileService.php.

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

◆ 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 140 of file class.SkillProfileService.php.

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

Field Documentation

◆ $profile_completion_manager

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

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

◆ $profile_manager

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

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


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