ILIAS  release_7 Revision v7.30-3-g800a261c036
All Data Structures Namespaces Files Functions Variables Modules Pages
ilBasicSkillUserLevelRepository Interface Reference

Interface ilBasicSkillUserLevelRepository. More...

+ Inheritance diagram for ilBasicSkillUserLevelRepository:
+ Collaboration diagram for ilBasicSkillUserLevelRepository:

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...
 

Detailed Description

Member Function Documentation

◆ deleteUserLevelsOfSkill()

ilBasicSkillUserLevelRepository::deleteUserLevelsOfSkill ( int  $skill_id)

Delete user levels of a skill.

Parameters
int$skill_id

Implemented in ilBasicSkillUserLevelDBRepository.

◆ getAllHistoricLevelEntriesOfUser()

ilBasicSkillUserLevelRepository::getAllHistoricLevelEntriesOfUser ( int  $skill_id,
int  $a_tref_id,
int  $a_user_id = 0,
int  $a_eval_by = 0 
)

Get all historic level entries.

Parameters
int$skill_id
int$a_tref_id
int$a_user_id
int$a_eval_by
Returns
array

Implemented in ilBasicSkillUserLevelDBRepository.

◆ getAllLevelEntriesOfUser()

ilBasicSkillUserLevelRepository::getAllLevelEntriesOfUser ( int  $skill_id,
int  $a_tref_id,
int  $a_user_id = 0,
int  $a_self_eval = 0 
)

Get all level entries.

Parameters
int$skill_id
int$a_tref_id
int$a_user_id
int$a_self_eval
Returns
array

Implemented in ilBasicSkillUserLevelDBRepository.

◆ getLastLevelPerObject()

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.

Parameters
int$skill_id
int$a_tref_id
int$a_object_id
int$a_user_id
int$a_self_eval
Returns
null|int

Implemented in ilBasicSkillUserLevelDBRepository.

◆ getLastUpdatePerObject()

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.

Parameters
int$skill_id
int$a_tref_id
int$a_object_id
int$a_user_id
int$a_self_eval
Returns
null|string

Implemented in ilBasicSkillUserLevelDBRepository.

◆ getMaxLevel()

ilBasicSkillUserLevelRepository::getMaxLevel ( int  $skill_id,
array  $levels,
int  $a_tref_id,
int  $a_user_id = 0,
int  $a_self_eval = 0 
)

Get max levels.

Parameters
int$skill_id
array$levels
int$a_tref_id
int$a_user_id
int$a_self_eval
Returns
int

Implemented in ilBasicSkillUserLevelDBRepository.

◆ getMaxLevelPerObject()

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.

Parameters
int$skill_id
array$levels
int$a_tref_id
int$a_object_id
int$a_user_id
int$a_self_eval
Returns
int

Implemented in ilBasicSkillUserLevelDBRepository.

◆ getMaxLevelPerType()

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.

Parameters
int$skill_id
array$levels
int$a_tref_id
string$a_type
int$a_user_id
int$a_self_eval
Returns
int

Implemented in ilBasicSkillUserLevelDBRepository.

◆ getNewAchievementsPerUser()

ilBasicSkillUserLevelRepository::getNewAchievementsPerUser ( string  $a_timestamp,
string  $a_timestamp_to = null,
int  $a_user_id = 0,
int  $a_self_eval = 0 
)

Get new achievements.

Parameters
string$a_timestamp
string$a_timestamp_to
int$a_user_id
int$a_self_eval
Returns
array

Implemented in ilBasicSkillUserLevelDBRepository.

◆ hasRecentSelfEvaluation()

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

Parameters
int$trigger_obj_idtriggering object id
int$a_user_iduser id
int$a_skill_idskill id
int$a_tref_idskill tref id
int$a_trigger_ref_idtriggering repository object ref id
Returns
mixed

Implemented in ilBasicSkillUserLevelDBRepository.

◆ hasSelfEvaluated()

ilBasicSkillUserLevelRepository::hasSelfEvaluated ( int  $a_user_id,
int  $a_skill_id,
int  $a_tref_id 
)

Has user self evaluated a skill?

Parameters
int$a_user_id
int$a_skill_id
int$a_tref_id
Returns
bool

Implemented in ilBasicSkillUserLevelDBRepository.

◆ removeAllUserData()

ilBasicSkillUserLevelRepository::removeAllUserData ( int  $a_user_id)

Remove all data of a user.

Parameters
int$a_user_id

Implemented in ilBasicSkillUserLevelDBRepository.

◆ removeAllUserSkillLevelStatusOfObject()

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.

Parameters
int$a_user_iduser id
int$a_trigger_obj_idtriggering repository object obj id
bool$a_self_evalcurrently needs to be set to true
string$a_unique_identifierunique identifier string
Returns
bool true, if entries have been deleted, otherwise false

Implemented in ilBasicSkillUserLevelDBRepository.

◆ resetUserSkillLevelStatus()

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.

Parameters
bool$updateupdate or insert
int$trigger_obj_idtriggering object id
mixed$status_datedate status
int$a_user_iduser id
int$a_skill_idskill id
int$a_tref_idskill tref id
int$a_trigger_ref_idtriggering repository object ref id
bool$a_self_evalcurrently needs to be set to true
Exceptions
ilSkillException

Implemented in ilBasicSkillUserLevelDBRepository.

◆ writeUserSkillLevelStatus()

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.

Parameters
int$skill_idskill id
int$trigger_ref_idtriggering repository object ref id
int$trigger_obj_idtriggering object id
null | string$trigger_titletriggering object title
null | string$trigger_typetriggering object type
bool$updateupdate or insert
mixed$status_datedate status
int$a_level_idskill level id
int$a_user_iduser id
int$a_tref_idskill tref id
bool$a_self_evalself evaluation
string$a_unique_identifiera unique identifier (should be used with trigger_ref_id > 0)
float$a_next_level_fulfilmentnext level percentage fulfilment value (value must be >=0 and <1)

Implemented in ilBasicSkillUserLevelDBRepository.


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