ILIAS
release_6 Revision v6.24-5-g0c8bfefb3b8
|
Skill profile. More...
Public Member Functions | |
__construct ($a_id=0) | |
Constructor. More... | |
setId ($a_val) | |
Set id. More... | |
getId () | |
Get id. More... | |
setTitle ($a_val) | |
Set title. More... | |
getTitle () | |
Get title. More... | |
setDescription ($a_val) | |
Set description. More... | |
getDescription () | |
Get description. More... | |
addSkillLevel ($a_base_skill_id, $a_tref_id, $a_level_id) | |
Add skill level. More... | |
removeSkillLevel ($a_base_skill_id, $a_tref_id, $a_level_id) | |
Remove skill level. More... | |
getSkillLevels () | |
Get skill levels. More... | |
read () | |
Read skill profile from db. More... | |
create () | |
Create skill profile. More... | |
update () | |
Update skill profile. More... | |
delete () | |
Delete skill profile. More... | |
getAssignments () | |
Get all assignments (users and roles) More... | |
getAssignedUsers () | |
Get assigned users. More... | |
addUserToProfile ($a_user_id) | |
Add user to profile. More... | |
removeUserFromProfile ($a_user_id) | |
Remove user from profile. More... | |
getAssignedRoles () | |
Get assigned roles. More... | |
addRoleToProfile (int $a_role_id) | |
Add role to profile. More... | |
removeRoleFromProfile (int $a_role_id) | |
Remove role from profile. More... | |
Static Public Member Functions | |
static | getProfiles () |
Get profiles. More... | |
static | lookupTitle ($a_id) |
Lookup title. More... | |
static | removeUserFromAllProfiles ($a_user_id) |
Remove user from all profiles. More... | |
static | getProfilesOfUser ($a_user_id) |
Get profiles of a user. More... | |
static | countUsers ($a_profile_id) |
Get assigned users. More... | |
static | removeRoleFromAllProfiles (int $a_role_id) |
Remove role from all profiles. More... | |
static | getProfilesOfRole (int $a_role_id) |
Get profiles of a role. More... | |
static | countRoles (int $a_profile_id) |
Count assigned roles of a profile. More... | |
static | getUsageInfo ($a_cskill_ids, &$a_usages) |
Get usage info. More... | |
Static Protected Member Functions | |
static | lookup ($a_id, $a_field) |
Lookup. More... | |
Protected Attributes | |
$db | |
$lng | |
$review | |
$id | |
$title | |
$description | |
$skill_level = array() | |
ilSkillProfile::__construct | ( | $a_id = 0 | ) |
Constructor.
int | $a_id | profile id |
Definition at line 41 of file class.ilSkillProfile.php.
References $DIC, read(), and setId().
ilSkillProfile::addRoleToProfile | ( | int | $a_role_id | ) |
Add role to profile.
int | $a_role_id | role id |
Definition at line 549 of file class.ilSkillProfile.php.
References $db, $ilDB, and getId().
ilSkillProfile::addSkillLevel | ( | $a_base_skill_id, | |
$a_tref_id, | |||
$a_level_id | |||
) |
Add skill level.
Definition at line 120 of file class.ilSkillProfile.php.
Referenced by read().
ilSkillProfile::addUserToProfile | ( | $a_user_id | ) |
Add user to profile.
int | $a_user_id | user id |
Definition at line 396 of file class.ilSkillProfile.php.
References $db, $ilDB, and getId().
|
static |
Count assigned roles of a profile.
int | $a_profile_id |
Definition at line 625 of file class.ilSkillProfile.php.
Referenced by ilSkillProfileTableGUI\fillRow().
|
static |
Get assigned users.
Definition at line 493 of file class.ilSkillProfile.php.
Referenced by ilSkillProfileTableGUI\fillRow().
ilSkillProfile::create | ( | ) |
ilSkillProfile::delete | ( | ) |
ilSkillProfile::getAssignedRoles | ( | ) |
Get assigned roles.
Definition at line 512 of file class.ilSkillProfile.php.
References $db, $ilDB, $lng, $name, $review, $type, ilObjRole\_getTranslation(), ilObject\_lookupObjectId(), ilObject\_lookupTitle(), and ilObject\_lookupType().
Referenced by getAssignments().
ilSkillProfile::getAssignedUsers | ( | ) |
Get assigned users.
Definition at line 369 of file class.ilSkillProfile.php.
References $db, $ilDB, $lng, $name, $type, and ilUserUtil\getNamePresentation().
Referenced by getAssignments().
ilSkillProfile::getAssignments | ( | ) |
Get all assignments (users and roles)
Definition at line 354 of file class.ilSkillProfile.php.
References getAssignedRoles(), and getAssignedUsers().
ilSkillProfile::getDescription | ( | ) |
Get description.
Definition at line 109 of file class.ilSkillProfile.php.
References $description.
ilSkillProfile::getId | ( | ) |
Get id.
Definition at line 69 of file class.ilSkillProfile.php.
References $id.
Referenced by addRoleToProfile(), addUserToProfile(), create(), and update().
|
static |
Get profiles.
Definition at line 298 of file class.ilSkillProfile.php.
Referenced by ilSkillProfileTableGUI\getProfiles().
|
static |
Get profiles of a role.
int | $a_role_id | role id |
Definition at line 600 of file class.ilSkillProfile.php.
|
static |
Get profiles of a user.
int | $a_user_id | user id |
Definition at line 447 of file class.ilSkillProfile.php.
Referenced by ilPersonalSkillsGUI\__construct(), ilSurveyEvaluationGUI\competenceEval(), and ilTestSkillEvaluation\getAssignedSkillMatchingSkillProfiles().
ilSkillProfile::getSkillLevels | ( | ) |
Get skill levels.
Definition at line 153 of file class.ilSkillProfile.php.
References $skill_level.
ilSkillProfile::getTitle | ( | ) |
Get title.
Definition at line 89 of file class.ilSkillProfile.php.
References $title.
|
static |
Get usage info.
Implements ilSkillUsageInfo.
Definition at line 645 of file class.ilSkillProfile.php.
References $DIC, $ilDB, ilSkillUsage\getUsageInfoGeneric(), and ilSkillUsage\PROFILE.
|
staticprotected |
|
static |
Lookup title.
Definition at line 342 of file class.ilSkillProfile.php.
Referenced by ilSkillProfileGUI\confirmDeleteProfiles().
ilSkillProfile::read | ( | ) |
Read skill profile from db.
Definition at line 164 of file class.ilSkillProfile.php.
References $db, $ilDB, addSkillLevel(), setDescription(), and setTitle().
Referenced by __construct().
|
static |
Remove role from all profiles.
int | $a_role_id |
Definition at line 583 of file class.ilSkillProfile.php.
Referenced by ilSkillObjDeletionHandler\processDeletion().
ilSkillProfile::removeRoleFromProfile | ( | int | $a_role_id | ) |
Remove role from profile.
int | $a_role_id | role id |
Definition at line 567 of file class.ilSkillProfile.php.
ilSkillProfile::removeSkillLevel | ( | $a_base_skill_id, | |
$a_tref_id, | |||
$a_level_id | |||
) |
|
static |
Remove user from all profiles.
int | $a_user_id |
Definition at line 430 of file class.ilSkillProfile.php.
Referenced by ilSkillObjDeletionHandler\processDeletion().
ilSkillProfile::removeUserFromProfile | ( | $a_user_id | ) |
Remove user from profile.
int | $a_user_id | user id |
Definition at line 414 of file class.ilSkillProfile.php.
ilSkillProfile::setDescription | ( | $a_val | ) |
Set description.
string | $a_val | description |
Definition at line 99 of file class.ilSkillProfile.php.
Referenced by read().
ilSkillProfile::setId | ( | $a_val | ) |
Set id.
int | $a_val | id |
Definition at line 59 of file class.ilSkillProfile.php.
Referenced by __construct(), and create().
ilSkillProfile::setTitle | ( | $a_val | ) |
Set title.
string | $a_val | title |
Definition at line 79 of file class.ilSkillProfile.php.
Referenced by read().
ilSkillProfile::update | ( | ) |
Update skill profile.
Definition at line 221 of file class.ilSkillProfile.php.
References $db, $ilDB, and getId().
|
protected |
Definition at line 19 of file class.ilSkillProfile.php.
Referenced by addRoleToProfile(), addUserToProfile(), create(), delete(), getAssignedRoles(), getAssignedUsers(), read(), removeRoleFromProfile(), removeUserFromProfile(), and update().
|
protected |
Definition at line 33 of file class.ilSkillProfile.php.
Referenced by getDescription().
|
protected |
Definition at line 31 of file class.ilSkillProfile.php.
Referenced by getId().
|
protected |
Definition at line 24 of file class.ilSkillProfile.php.
Referenced by getAssignedRoles(), and getAssignedUsers().
|
protected |
Definition at line 29 of file class.ilSkillProfile.php.
Referenced by getAssignedRoles().
|
protected |
Definition at line 34 of file class.ilSkillProfile.php.
Referenced by getSkillLevels().
|
protected |
Definition at line 32 of file class.ilSkillProfile.php.
Referenced by getTitle().