ILIAS
release_7 Revision v7.30-3-g800a261c036
|
Interface ilBasicSkillUserLevelRepository. More...
Public Member Functions | |
deleteUserLevelsOfSkill (int $skill_id) | |
Delete user levels of a skill. More... | |
resetUserSkillLevelStatus (bool $update, int $trigger_obj_id, $status_date, int $a_user_id, int $a_skill_id, int $a_tref_id=0, int $a_trigger_ref_id=0, bool $a_self_eval=false) | |
Reset skill level status. More... | |
hasRecentSelfEvaluation (int $trigger_obj_id, int $a_user_id, int $a_skill_id, int $a_tref_id=0, int $a_trigger_ref_id=0) | |
Has recent self evaluation. More... | |
getNewAchievementsPerUser (string $a_timestamp, string $a_timestamp_to=null, int $a_user_id=0, int $a_self_eval=0) | |
Get new achievements. More... | |
writeUserSkillLevelStatus (int $skill_id, int $trigger_ref_id, int $trigger_obj_id, ?string $trigger_title, ?string $trigger_type, bool $update, $status_date, int $a_level_id, int $a_user_id, int $a_tref_id=0, bool $a_self_eval=false, string $a_unique_identifier="", float $a_next_level_fulfilment=0.0) | |
Write skill level status. More... | |
removeAllUserSkillLevelStatusOfObject (int $a_user_id, int $a_trigger_obj_id, bool $a_self_eval=false, string $a_unique_identifier="") | |
Remove a user skill completely. More... | |
removeAllUserData (int $a_user_id) | |
Remove all data of a user. More... | |
getMaxLevelPerType (int $skill_id, array $levels, int $a_tref_id, string $a_type, int $a_user_id=0, int $a_self_eval=0) | |
Get max levels per type. More... | |
getAllLevelEntriesOfUser (int $skill_id, int $a_tref_id, int $a_user_id=0, int $a_self_eval=0) | |
Get all level entries. More... | |
getAllHistoricLevelEntriesOfUser (int $skill_id, int $a_tref_id, int $a_user_id=0, int $a_eval_by=0) | |
Get all historic level entries. More... | |
getMaxLevelPerObject (int $skill_id, array $levels, int $a_tref_id, int $a_object_id, int $a_user_id=0, int $a_self_eval=0) | |
Get max levels per object. More... | |
getMaxLevel (int $skill_id, array $levels, int $a_tref_id, int $a_user_id=0, int $a_self_eval=0) | |
Get max levels. More... | |
hasSelfEvaluated (int $a_user_id, int $a_skill_id, int $a_tref_id) | |
Has user self evaluated a skill? More... | |
getLastLevelPerObject (int $skill_id, int $a_tref_id, int $a_object_id, int $a_user_id=0, int $a_self_eval=0) | |
Get last level set per object. More... | |
getLastUpdatePerObject (int $skill_id, int $a_tref_id, int $a_object_id, int $a_user_id=0, int $a_self_eval=0) | |
Get last update per object. More... | |
Interface ilBasicSkillUserLevelRepository.
Definition at line 8 of file interface.ilBasicSkillUserLevelRepository.php.
ilBasicSkillUserLevelRepository::deleteUserLevelsOfSkill | ( | int | $skill_id | ) |
Delete user levels of a skill.
int | $skill_id |
Implemented in ilBasicSkillUserLevelDBRepository.
ilBasicSkillUserLevelRepository::getAllHistoricLevelEntriesOfUser | ( | int | $skill_id, |
int | $a_tref_id, | ||
int | $a_user_id = 0 , |
||
int | $a_eval_by = 0 |
||
) |
Get all historic level entries.
int | $skill_id | |
int | $a_tref_id | |
int | $a_user_id | |
int | $a_eval_by |
Implemented in ilBasicSkillUserLevelDBRepository.
ilBasicSkillUserLevelRepository::getAllLevelEntriesOfUser | ( | int | $skill_id, |
int | $a_tref_id, | ||
int | $a_user_id = 0 , |
||
int | $a_self_eval = 0 |
||
) |
Get all level entries.
int | $skill_id | |
int | $a_tref_id | |
int | $a_user_id | |
int | $a_self_eval |
Implemented in ilBasicSkillUserLevelDBRepository.
ilBasicSkillUserLevelRepository::getLastLevelPerObject | ( | int | $skill_id, |
int | $a_tref_id, | ||
int | $a_object_id, | ||
int | $a_user_id = 0 , |
||
int | $a_self_eval = 0 |
||
) |
Get last level set per object.
int | $skill_id | |
int | $a_tref_id | |
int | $a_object_id | |
int | $a_user_id | |
int | $a_self_eval |
Implemented in ilBasicSkillUserLevelDBRepository.
ilBasicSkillUserLevelRepository::getLastUpdatePerObject | ( | int | $skill_id, |
int | $a_tref_id, | ||
int | $a_object_id, | ||
int | $a_user_id = 0 , |
||
int | $a_self_eval = 0 |
||
) |
Get last update per object.
int | $skill_id | |
int | $a_tref_id | |
int | $a_object_id | |
int | $a_user_id | |
int | $a_self_eval |
Implemented in ilBasicSkillUserLevelDBRepository.
ilBasicSkillUserLevelRepository::getMaxLevel | ( | int | $skill_id, |
array | $levels, | ||
int | $a_tref_id, | ||
int | $a_user_id = 0 , |
||
int | $a_self_eval = 0 |
||
) |
Get max levels.
int | $skill_id | |
array | $levels | |
int | $a_tref_id | |
int | $a_user_id | |
int | $a_self_eval |
Implemented in ilBasicSkillUserLevelDBRepository.
ilBasicSkillUserLevelRepository::getMaxLevelPerObject | ( | int | $skill_id, |
array | $levels, | ||
int | $a_tref_id, | ||
int | $a_object_id, | ||
int | $a_user_id = 0 , |
||
int | $a_self_eval = 0 |
||
) |
Get max levels per object.
int | $skill_id | |
array | $levels | |
int | $a_tref_id | |
int | $a_object_id | |
int | $a_user_id | |
int | $a_self_eval |
Implemented in ilBasicSkillUserLevelDBRepository.
ilBasicSkillUserLevelRepository::getMaxLevelPerType | ( | int | $skill_id, |
array | $levels, | ||
int | $a_tref_id, | ||
string | $a_type, | ||
int | $a_user_id = 0 , |
||
int | $a_self_eval = 0 |
||
) |
Get max levels per type.
int | $skill_id | |
array | $levels | |
int | $a_tref_id | |
string | $a_type | |
int | $a_user_id | |
int | $a_self_eval |
Implemented in ilBasicSkillUserLevelDBRepository.
ilBasicSkillUserLevelRepository::getNewAchievementsPerUser | ( | string | $a_timestamp, |
string | $a_timestamp_to = null , |
||
int | $a_user_id = 0 , |
||
int | $a_self_eval = 0 |
||
) |
Get new achievements.
string | $a_timestamp | |
string | $a_timestamp_to | |
int | $a_user_id | |
int | $a_self_eval |
Implemented in ilBasicSkillUserLevelDBRepository.
ilBasicSkillUserLevelRepository::hasRecentSelfEvaluation | ( | int | $trigger_obj_id, |
int | $a_user_id, | ||
int | $a_skill_id, | ||
int | $a_tref_id = 0 , |
||
int | $a_trigger_ref_id = 0 |
||
) |
Has recent self evaluation.
Check if self evaluation for user/object has been done on the same day already
int | $trigger_obj_id | triggering object id |
int | $a_user_id | user id |
int | $a_skill_id | skill id |
int | $a_tref_id | skill tref id |
int | $a_trigger_ref_id | triggering repository object ref id |
Implemented in ilBasicSkillUserLevelDBRepository.
ilBasicSkillUserLevelRepository::hasSelfEvaluated | ( | int | $a_user_id, |
int | $a_skill_id, | ||
int | $a_tref_id | ||
) |
Has user self evaluated a skill?
int | $a_user_id | |
int | $a_skill_id | |
int | $a_tref_id |
Implemented in ilBasicSkillUserLevelDBRepository.
ilBasicSkillUserLevelRepository::removeAllUserData | ( | int | $a_user_id | ) |
Remove all data of a user.
int | $a_user_id |
Implemented in ilBasicSkillUserLevelDBRepository.
ilBasicSkillUserLevelRepository::removeAllUserSkillLevelStatusOfObject | ( | int | $a_user_id, |
int | $a_trigger_obj_id, | ||
bool | $a_self_eval = false , |
||
string | $a_unique_identifier = "" |
||
) |
Remove a user skill completely.
int | $a_user_id | user id |
int | $a_trigger_obj_id | triggering repository object obj id |
bool | $a_self_eval | currently needs to be set to true |
string | $a_unique_identifier | unique identifier string |
Implemented in ilBasicSkillUserLevelDBRepository.
ilBasicSkillUserLevelRepository::resetUserSkillLevelStatus | ( | bool | $update, |
int | $trigger_obj_id, | ||
$status_date, | |||
int | $a_user_id, | ||
int | $a_skill_id, | ||
int | $a_tref_id = 0 , |
||
int | $a_trigger_ref_id = 0 , |
||
bool | $a_self_eval = false |
||
) |
Reset skill level status.
This is currently only used for self evaluations with a "no competence" level. It has to be discussed, how this should be provided for non-self-evaluations.
bool | $update | update or insert |
int | $trigger_obj_id | triggering object id |
mixed | $status_date | date status |
int | $a_user_id | user id |
int | $a_skill_id | skill id |
int | $a_tref_id | skill tref id |
int | $a_trigger_ref_id | triggering repository object ref id |
bool | $a_self_eval | currently needs to be set to true |
ilSkillException |
Implemented in ilBasicSkillUserLevelDBRepository.
ilBasicSkillUserLevelRepository::writeUserSkillLevelStatus | ( | int | $skill_id, |
int | $trigger_ref_id, | ||
int | $trigger_obj_id, | ||
?string | $trigger_title, | ||
?string | $trigger_type, | ||
bool | $update, | ||
$status_date, | |||
int | $a_level_id, | ||
int | $a_user_id, | ||
int | $a_tref_id = 0 , |
||
bool | $a_self_eval = false , |
||
string | $a_unique_identifier = "" , |
||
float | $a_next_level_fulfilment = 0.0 |
||
) |
Write skill level status.
int | $skill_id | skill id |
int | $trigger_ref_id | triggering repository object ref id |
int | $trigger_obj_id | triggering object id |
null | string | $trigger_title | triggering object title |
null | string | $trigger_type | triggering object type |
bool | $update | update or insert |
mixed | $status_date | date status |
int | $a_level_id | skill level id |
int | $a_user_id | user id |
int | $a_tref_id | skill tref id |
bool | $a_self_eval | self evaluation |
string | $a_unique_identifier | a unique identifier (should be used with trigger_ref_id > 0) |
float | $a_next_level_fulfilment | next level percentage fulfilment value (value must be >=0 and <1) |
Implemented in ilBasicSkillUserLevelDBRepository.