ILIAS  release_7 Revision v7.30-3-g800a261c036
interface.ilBasicSkillUserLevelRepository.php
Go to the documentation of this file.
1<?php
2
3/* Copyright (c) 1998-2019 ILIAS open source, Extended GPL, see docs/LICENSE */
4
9{
10
15 public function deleteUserLevelsOfSkill(int $skill_id);
16
31 bool $update,
32 int $trigger_obj_id,
33 $status_date,
34 int $a_user_id,
35 int $a_skill_id,
36 int $a_tref_id = 0,
37 int $a_trigger_ref_id = 0,
38 bool $a_self_eval = false
39 );
40
51 public function hasRecentSelfEvaluation(
52 int $trigger_obj_id,
53 int $a_user_id,
54 int $a_skill_id,
55 int $a_tref_id = 0,
56 int $a_trigger_ref_id = 0
57 );
58
68 string $a_timestamp,
69 string $a_timestamp_to = null,
70 int $a_user_id = 0,
71 int $a_self_eval = 0
72 ) : array;
73
91 int $skill_id,
92 int $trigger_ref_id,
93 int $trigger_obj_id,
94 ?string $trigger_title,
95 ?string $trigger_type,
96 bool $update,
97 $status_date,
98 int $a_level_id,
99 int $a_user_id,
100 int $a_tref_id = 0,
101 bool $a_self_eval = false,
102 string $a_unique_identifier = "",
103 float $a_next_level_fulfilment = 0.0
104 );
105
115 int $a_user_id,
116 int $a_trigger_obj_id,
117 bool $a_self_eval = false,
118 string $a_unique_identifier = ""
119 ) : bool;
120
125 public function removeAllUserData(int $a_user_id);
126
137 public function getMaxLevelPerType(
138 int $skill_id,
139 array $levels,
140 int $a_tref_id,
141 string $a_type,
142 int $a_user_id = 0,
143 int $a_self_eval = 0
144 ) : int;
145
155 int $skill_id,
156 int $a_tref_id,
157 int $a_user_id = 0,
158 int $a_self_eval = 0
159 ) : array;
160
170 int $skill_id,
171 int $a_tref_id,
172 int $a_user_id = 0,
173 int $a_eval_by = 0
174 ) : array;
175
186 public function getMaxLevelPerObject(
187 int $skill_id,
188 array $levels,
189 int $a_tref_id,
190 int $a_object_id,
191 int $a_user_id = 0,
192 int $a_self_eval = 0
193 ) : int;
194
204 public function getMaxLevel(
205 int $skill_id,
206 array $levels,
207 int $a_tref_id,
208 int $a_user_id = 0,
209 int $a_self_eval = 0
210 ) : int;
211
219 public function hasSelfEvaluated(int $a_user_id, int $a_skill_id, int $a_tref_id) : bool;
220
230 public function getLastLevelPerObject(
231 int $skill_id,
232 int $a_tref_id,
233 int $a_object_id,
234 int $a_user_id = 0,
235 int $a_self_eval = 0
236 ) : ?int;
237
247 public function getLastUpdatePerObject(
248 int $skill_id,
249 int $a_tref_id,
250 int $a_object_id,
251 int $a_user_id = 0,
252 int $a_self_eval = 0
253 ) : ?string;
254}
An exception for terminatinating execution or to throw for unit testing.
Interface 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.
getAllHistoricLevelEntriesOfUser(int $skill_id, int $a_tref_id, int $a_user_id=0, int $a_eval_by=0)
Get all historic level entries.
getNewAchievementsPerUser(string $a_timestamp, string $a_timestamp_to=null, int $a_user_id=0, int $a_self_eval=0)
Get new achievements.
getMaxLevel(int $skill_id, array $levels, int $a_tref_id, int $a_user_id=0, int $a_self_eval=0)
Get max levels.
removeAllUserData(int $a_user_id)
Remove all data of a user.
getAllLevelEntriesOfUser(int $skill_id, int $a_tref_id, int $a_user_id=0, int $a_self_eval=0)
Get all level entries.
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.
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.
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.
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.
hasSelfEvaluated(int $a_user_id, int $a_skill_id, int $a_tref_id)
Has user self evaluated a skill?
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.
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.
removeAllUserSkillLevelStatusOfObject(int $a_user_id, int $a_trigger_obj_id, bool $a_self_eval=false, string $a_unique_identifier="")
Remove a user skill completely.
deleteUserLevelsOfSkill(int $skill_id)
Delete user levels of a skill.