ILIAS  release_8 Revision v8.24
ILIAS\Skill\Service\SkillProfileService Class Reference

Skill profile service. More...

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

Public Member Functions

 __construct (SkillInternalService $internal_service)
 
 getById (int $profile_id)
 
 delete (int $profile_id)
 
 lookupTitle (int $profile_id)
 
 lookupRefId (int $profile_id)
 
 getProfilesOfUser (int $user_id)
 
 getAllGlobalProfiles ()
 
 addRoleToProfile (int $profile_id, int $role_id)
 
 updateRefIdAfterImport (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 28 of file class.SkillProfileService.php.

Constructor & Destructor Documentation

◆ __construct()

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

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

34 {
35 $this->profile_manager = $internal_service->manager()->getProfileManager();
36 $this->profile_completion_manager = $internal_service->manager()->getProfileCompletionManager();
37 }

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

+ 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 76 of file class.SkillProfileService.php.

76 : void
77 {
78 $this->profile_manager->addRoleToProfile($profile_id, $role_id);
79 }

◆ delete()

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

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

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

◆ getAllGlobalProfiles()

ILIAS\Skill\Service\SkillProfileService::getAllGlobalProfiles ( )

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

70 : array
71 {
72 $profiles = $this->profile_manager->getAllGlobalProfiles();
73 return $profiles;
74 }

◆ getById()

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

ilSkillProfileNotFoundException

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

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

◆ getProfilesOfUser()

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

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

65 : array
66 {
67 return $this->profile_manager->getProfilesOfUser($user_id);
68 }

◆ lookupRefId()

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

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

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

References $ref_id.

◆ lookupTitle()

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

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

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

◆ updateRefIdAfterImport()

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

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

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

84 : void
85 {
86 $this->profile_manager->updateRefIdAfterImport($profile_id, $new_ref_id);
87 }

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

92 : void
93 {
94 $this->profile_completion_manager->writeCompletionEntryForAllProfiles($user_id);
95 }

Field Documentation

◆ $profile_completion_manager

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

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

◆ $profile_manager

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

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


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