32 public function __construct(
int $a_base_skill = 0,
int $a_tref_id = 0)
37 public function isLevelTooLow(array $a_levels, array $profile_levels, array $actual_levels): bool
41 foreach ($a_levels as $k => $v) {
42 foreach ($profile_levels as $pl) {
43 if ($pl[
"level_id"] == $v[
"id"] &&
44 $pl[
"base_skill_id"] == $v[
"skill_id"]) {
46 $this->current_target_level = $v[
"id"];
50 if ($actual_levels[$v[
"skill_id"]][$this->res->getTemplateRefId()] == $v[
"id"]) {
66 foreach ($level as $r) {
67 if ($r[
"imparting"] &&
68 $this->current_target_level == $r[
"level_id"]) {
69 $imp_resources[] = $r;
74 return $imp_resources;
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
isLevelTooLow(array $a_levels, array $profile_levels, array $actual_levels)
int $current_target_level
__construct(int $a_base_skill=0, int $a_tref_id=0)