ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
interface.ilSkillUserLevelRepository.php
Go to the documentation of this file.
1<?php
2
19declare(strict_types=1);
20
25{
26 public function deleteUserLevelsOfSkill(int $skill_id): void;
27
42 bool $update,
43 int $trigger_obj_id,
44 string $status_date,
45 int $a_user_id,
46 int $a_skill_id,
47 int $a_tref_id = 0,
48 int $a_trigger_ref_id = 0,
49 bool $a_self_eval = false
50 ): void;
51
62 public function hasRecentSelfEvaluation(
63 int $trigger_obj_id,
64 int $a_user_id,
65 int $a_skill_id,
66 int $a_tref_id = 0,
67 int $a_trigger_ref_id = 0
68 ): string;
69
71 string $a_timestamp,
72 ?string $a_timestamp_to = null,
73 int $a_user_id = 0,
74 int $a_self_eval = 0
75 ): array;
76
94 int $skill_id,
95 int $trigger_ref_id,
96 int $trigger_obj_id,
97 ?string $trigger_title,
98 ?string $trigger_type,
99 bool $update,
100 string $status_date,
101 int $a_level_id,
102 int $a_user_id,
103 int $a_tref_id = 0,
104 bool $a_self_eval = false,
105 string $a_unique_identifier = "",
106 float $a_next_level_fulfilment = 0.0,
107 string $trigger_user_id = ""
108 ): void;
109
119 int $a_user_id,
120 int $a_trigger_obj_id,
121 bool $a_self_eval = false,
122 string $a_unique_identifier = ""
123 ): bool;
124
125 public function removeAllUserData(int $a_user_id): void;
126
127 public function getMaxLevelPerType(
128 int $skill_id,
129 array $levels,
130 int $a_tref_id,
131 string $a_type,
132 int $a_user_id = 0,
133 int $a_self_eval = 0
134 ): int;
135
137 int $skill_id,
138 int $a_tref_id,
139 string $a_type,
140 int $a_user_id = 0,
141 int $a_self_eval = 0
142 ): float;
143
145 int $skill_id,
146 int $a_tref_id,
147 int $a_user_id = 0,
148 int $a_self_eval = 0
149 ): array;
150
152 int $skill_id,
153 int $a_tref_id,
154 int $a_user_id = 0,
155 int $a_eval_by = 0
156 ): array;
157
158 public function getMaxLevelPerObject(
159 int $skill_id,
160 array $levels,
161 int $a_tref_id,
162 int $a_object_id,
163 int $a_user_id = 0,
164 int $a_self_eval = 0
165 ): int;
166
168 int $skill_id,
169 int $a_tref_id,
170 int $a_object_id,
171 int $a_user_id = 0,
172 int $a_self_eval = 0
173 ): float;
174
175 public function getMaxLevel(
176 int $skill_id,
177 array $levels,
178 int $a_tref_id,
179 int $a_user_id = 0,
180 int $a_self_eval = 0
181 ): int;
182
183 public function getNextLevelFulfilment(
184 int $skill_id,
185 int $a_tref_id,
186 int $a_user_id = 0,
187 int $a_self_eval = 0
188 ): float;
189
190 public function hasSelfEvaluated(int $a_user_id, int $a_skill_id, int $a_tref_id): bool;
191
192 public function getLastLevelPerObject(
193 int $skill_id,
194 int $a_tref_id,
195 int $a_object_id,
196 int $a_user_id = 0,
197 int $a_self_eval = 0
198 ): int;
199
200 public function getLastUpdatePerObject(
201 int $skill_id,
202 int $a_tref_id,
203 int $a_object_id,
204 int $a_user_id = 0,
205 int $a_self_eval = 0
206 ): string;
207}
Interface ilSkillUserLevelRepository.
resetUserSkillLevelStatus(bool $update, int $trigger_obj_id, string $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)
getNextLevelFulfilmentPerObject(int $skill_id, int $a_tref_id, int $a_object_id, int $a_user_id=0, int $a_self_eval=0)
getLastLevelPerObject(int $skill_id, int $a_tref_id, int $a_object_id, int $a_user_id=0, int $a_self_eval=0)
getNextLevelFulfilmentPerType(int $skill_id, int $a_tref_id, string $a_type, int $a_user_id=0, int $a_self_eval=0)
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.
getAllHistoricLevelEntriesOfUser(int $skill_id, int $a_tref_id, int $a_user_id=0, int $a_eval_by=0)
removeAllUserData(int $a_user_id)
writeUserSkillLevelStatus(int $skill_id, int $trigger_ref_id, int $trigger_obj_id, ?string $trigger_title, ?string $trigger_type, bool $update, string $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, string $trigger_user_id="")
Write skill level status.
removeAllUserSkillLevelStatusOfObject(int $a_user_id, int $a_trigger_obj_id, bool $a_self_eval=false, string $a_unique_identifier="")
Remove a user skill completely.
getNewAchievementsPerUser(string $a_timestamp, ?string $a_timestamp_to=null, int $a_user_id=0, int $a_self_eval=0)
getMaxLevelPerObject(int $skill_id, array $levels, int $a_tref_id, int $a_object_id, int $a_user_id=0, int $a_self_eval=0)
getLastUpdatePerObject(int $skill_id, int $a_tref_id, int $a_object_id, int $a_user_id=0, int $a_self_eval=0)
getMaxLevelPerType(int $skill_id, array $levels, int $a_tref_id, string $a_type, int $a_user_id=0, int $a_self_eval=0)
deleteUserLevelsOfSkill(int $skill_id)
getNextLevelFulfilment(int $skill_id, int $a_tref_id, int $a_user_id=0, int $a_self_eval=0)
getAllLevelEntriesOfUser(int $skill_id, int $a_tref_id, int $a_user_id=0, int $a_self_eval=0)
getMaxLevel(int $skill_id, array $levels, int $a_tref_id, int $a_user_id=0, int $a_self_eval=0)