ILIAS
trunk Revision v11.0_alpha-1811-gd2d5443e411
|
Manages skill profile completion. More...
Public Member Functions | |
__construct (SkillProfileManager $profile_manager, ?SkillProfileCompletionDBRepository $profile_completion_repo=null) | |
getActualMaxLevels (int $user_id, array $skills, string $gap_mode="", string $gap_mode_type="", int $gap_mode_obj_id=0) | |
getActualLastLevels (int $user_id, array $skills, string $gap_mode="", string $gap_mode_type="", int $gap_mode_obj_id=0) | |
getActualNextLevelFulfilments (int $user_id, array $skills, string $gap_mode="", string $gap_mode_type="", int $gap_mode_obj_id=0) | |
getProfileProgress (int $user_id, int $profile_id) | |
Get progress in percent for a profile. More... | |
isProfileFulfilled (int $user_id, int $profile_id) | |
Check if a profile is fulfilled (progress = 100%) More... | |
getAllProfileCompletionsForUser (int $user_id) | |
Get all profiles of user which are fulfilled or non-fulfilled. More... | |
getEntries (int $user_id, int $profile_id) | |
Get profile completion entries for given user-profile-combination. More... | |
getFulfilledEntriesForUser (int $user_id) | |
Get all fulfilled profile completion entries for a user. More... | |
getAllEntriesForUser (int $user_id) | |
Get all profile completion entries for a user. More... | |
getAllEntriesForProfile (int $profile_id) | |
Get all completion entries for a single profile. More... | |
writeCompletionEntryForAllProfilesOfUser (int $user_id) | |
Write profile completion entries (fulfilled or non-fulfilled) of user for all profiles. More... | |
writeCompletionEntryForSingleProfileOfUser (int $user_id, int $profile_id) | |
Write profile completion entry (fulfilled or non-fulfilled) of user for given profile. More... | |
writeCompletionEntryForAllAssignedUsersOfProfile (int $profile_id) | |
Write completion entries for a profile for all assigned users of the given profile. More... | |
writeCompletionEntryForRole (int $role_id, int $profile_id) | |
Write completion entries for a profile for assigned users of a role. More... | |
deleteEntriesForProfile (int $profile_id) | |
Delete all profile completion entries for a profile. More... | |
deleteEntriesForUser (int $user_id) | |
Delete all profile completion entries for a user. More... | |
Protected Attributes | |
SkillProfileManager | $profile_manager |
SkillProfileCompletionDBRepository | $profile_completion_repo |
ilTree | $tree_service |
ilObjectDefinition | $obj_definition |
Manages skill profile completion.
(business logic)
Definition at line 33 of file class.SkillProfileCompletionManager.php.
ILIAS\Skill\Profile\SkillProfileCompletionManager::__construct | ( | SkillProfileManager | $profile_manager, |
?SkillProfileCompletionDBRepository | $profile_completion_repo = null |
||
) |
Definition at line 40 of file class.SkillProfileCompletionManager.php.
References $DIC, ILIAS\Skill\Profile\SkillProfileCompletionManager\$profile_completion_repo, and ILIAS\Skill\Profile\SkillProfileCompletionManager\$profile_manager.
ILIAS\Skill\Profile\SkillProfileCompletionManager::deleteEntriesForProfile | ( | int | $profile_id | ) |
Delete all profile completion entries for a profile.
Definition at line 279 of file class.SkillProfileCompletionManager.php.
ILIAS\Skill\Profile\SkillProfileCompletionManager::deleteEntriesForUser | ( | int | $user_id | ) |
Delete all profile completion entries for a user.
Definition at line 287 of file class.SkillProfileCompletionManager.php.
ILIAS\Skill\Profile\SkillProfileCompletionManager::getActualLastLevels | ( | int | $user_id, |
array | $skills, | ||
string | $gap_mode = "" , |
||
string | $gap_mode_type = "" , |
||
int | $gap_mode_obj_id = 0 |
||
) |
Definition at line 97 of file class.SkillProfileCompletionManager.php.
ILIAS\Skill\Profile\SkillProfileCompletionManager::getActualMaxLevels | ( | int | $user_id, |
array | $skills, | ||
string | $gap_mode = "" , |
||
string | $gap_mode_type = "" , |
||
int | $gap_mode_obj_id = 0 |
||
) |
GapAnalysisSkill[] | $skills |
Definition at line 57 of file class.SkillProfileCompletionManager.php.
References $ref_id, $user_id, ilObject\_getAllReferences(), ilObject\_lookupObjectId(), ilObject\_lookupType(), and ilObjectLP\getSupportedObjectTypes().
Referenced by ILIAS\Skill\Profile\SkillProfileCompletionManager\getProfileProgress().
ILIAS\Skill\Profile\SkillProfileCompletionManager::getActualNextLevelFulfilments | ( | int | $user_id, |
array | $skills, | ||
string | $gap_mode = "" , |
||
string | $gap_mode_type = "" , |
||
int | $gap_mode_obj_id = 0 |
||
) |
GapAnalysisSkill[] | $skills |
Definition at line 112 of file class.SkillProfileCompletionManager.php.
References $user_id.
ILIAS\Skill\Profile\SkillProfileCompletionManager::getAllEntriesForProfile | ( | int | $profile_id | ) |
Get all completion entries for a single profile.
Definition at line 222 of file class.SkillProfileCompletionManager.php.
ILIAS\Skill\Profile\SkillProfileCompletionManager::getAllEntriesForUser | ( | int | $user_id | ) |
Get all profile completion entries for a user.
Definition at line 213 of file class.SkillProfileCompletionManager.php.
ILIAS\Skill\Profile\SkillProfileCompletionManager::getAllProfileCompletionsForUser | ( | int | $user_id | ) |
Get all profiles of user which are fulfilled or non-fulfilled.
Definition at line 176 of file class.SkillProfileCompletionManager.php.
References ILIAS\Skill\Profile\SkillProfileCompletionManager\isProfileFulfilled().
Referenced by ILIAS\Skill\Profile\SkillProfileCompletionManager\writeCompletionEntryForAllProfilesOfUser().
ILIAS\Skill\Profile\SkillProfileCompletionManager::getEntries | ( | int | $user_id, |
int | $profile_id | ||
) |
Get profile completion entries for given user-profile-combination.
Definition at line 195 of file class.SkillProfileCompletionManager.php.
ILIAS\Skill\Profile\SkillProfileCompletionManager::getFulfilledEntriesForUser | ( | int | $user_id | ) |
Get all fulfilled profile completion entries for a user.
Definition at line 204 of file class.SkillProfileCompletionManager.php.
ILIAS\Skill\Profile\SkillProfileCompletionManager::getProfileProgress | ( | int | $user_id, |
int | $profile_id | ||
) |
Get progress in percent for a profile.
Definition at line 139 of file class.SkillProfileCompletionManager.php.
References ILIAS\Skill\Profile\SkillProfileCompletionManager\getActualMaxLevels().
Referenced by ILIAS\Skill\Profile\SkillProfileCompletionManager\isProfileFulfilled().
ILIAS\Skill\Profile\SkillProfileCompletionManager::isProfileFulfilled | ( | int | $user_id, |
int | $profile_id | ||
) |
Check if a profile is fulfilled (progress = 100%)
Definition at line 164 of file class.SkillProfileCompletionManager.php.
References ILIAS\Skill\Profile\SkillProfileCompletionManager\getProfileProgress().
Referenced by ILIAS\Skill\Profile\SkillProfileCompletionManager\getAllProfileCompletionsForUser(), and ILIAS\Skill\Profile\SkillProfileCompletionManager\writeCompletionEntryForSingleProfileOfUser().
ILIAS\Skill\Profile\SkillProfileCompletionManager::writeCompletionEntryForAllAssignedUsersOfProfile | ( | int | $profile_id | ) |
Write completion entries for a profile for all assigned users of the given profile.
Definition at line 257 of file class.SkillProfileCompletionManager.php.
References $user_id, and ILIAS\Skill\Profile\SkillProfileCompletionManager\writeCompletionEntryForSingleProfileOfUser().
ILIAS\Skill\Profile\SkillProfileCompletionManager::writeCompletionEntryForAllProfilesOfUser | ( | int | $user_id | ) |
Write profile completion entries (fulfilled or non-fulfilled) of user for all profiles.
Definition at line 230 of file class.SkillProfileCompletionManager.php.
References ILIAS\Skill\Profile\SkillProfileCompletionManager\getAllProfileCompletionsForUser().
ILIAS\Skill\Profile\SkillProfileCompletionManager::writeCompletionEntryForRole | ( | int | $role_id, |
int | $profile_id | ||
) |
Write completion entries for a profile for assigned users of a role.
Definition at line 268 of file class.SkillProfileCompletionManager.php.
References $user_id, and ILIAS\Skill\Profile\SkillProfileCompletionManager\writeCompletionEntryForSingleProfileOfUser().
ILIAS\Skill\Profile\SkillProfileCompletionManager::writeCompletionEntryForSingleProfileOfUser | ( | int | $user_id, |
int | $profile_id | ||
) |
Write profile completion entry (fulfilled or non-fulfilled) of user for given profile.
Definition at line 245 of file class.SkillProfileCompletionManager.php.
References ILIAS\Skill\Profile\SkillProfileCompletionManager\isProfileFulfilled().
Referenced by ILIAS\Skill\Profile\SkillProfileCompletionManager\writeCompletionEntryForAllAssignedUsersOfProfile(), and ILIAS\Skill\Profile\SkillProfileCompletionManager\writeCompletionEntryForRole().
|
protected |
Definition at line 38 of file class.SkillProfileCompletionManager.php.
|
protected |
Definition at line 36 of file class.SkillProfileCompletionManager.php.
Referenced by ILIAS\Skill\Profile\SkillProfileCompletionManager\__construct().
|
protected |
Definition at line 35 of file class.SkillProfileCompletionManager.php.
Referenced by ILIAS\Skill\Profile\SkillProfileCompletionManager\__construct().
|
protected |
Definition at line 37 of file class.SkillProfileCompletionManager.php.