46 $this->container_skills = $a_cont_skills;
47 $this->container_global_profiles = $a_cont_glb_profiles;
48 $this->container_local_profiles = $a_cont_lcl_profiles;
50 $this->tree_service = $DIC->skills()->tree();
51 $this->profile_service = $DIC->skills()->profile();
61 $this->tab_skills = array_merge($s_skills, $p_skills);
64 $vtree = $this->tree_service->getGlobalVirtualSkillTree();
65 $this->tab_skills = $vtree->getOrderedNodeset($this->tab_skills,
"base_skill_id",
"tref_id");
78 $p_skills[$ps[
"base_skill_id"] .
"-" . $ps[
"tref_id"]] = [
79 "base_skill_id" => $ps[
"base_skill_id"],
80 "tref_id" => $ps[
"tref_id"],
81 "title" => $ps[
"title"],
82 "profile" => $ps[
"profile"]
86 $this->pres_skills = array_merge($s_skills, $p_skills);
93 $s_skills = array_map(
static function (array $v): array {
95 "base_skill_id" => $v[
"skill_id"],
96 "tref_id" => $v[
"tref_id"],
99 }, $this->container_skills->getSkills());
108 if ($this->skmg_settings->getLocalAssignmentOfProfiles()) {
109 foreach ($this->container_global_profiles->getProfiles() as $gp) {
110 $profile = $this->profile_service->getById($gp[
"profile_id"]);
111 $sklvs = $profile->getSkillLevels();
112 foreach ($sklvs as $s) {
114 "base_skill_id" => $s[
"base_skill_id"],
115 "tref_id" => $s[
"tref_id"],
117 "profile" => $profile->getTitle()
124 if ($this->skmg_settings->getAllowLocalProfiles()) {
125 foreach ($this->container_local_profiles->getProfiles() as $lp) {
126 $profile = $this->profile_service->getById($lp[
"profile_id"]);
127 $sklvs = $profile->getSkillLevels();
128 foreach ($sklvs as $s) {
130 "base_skill_id" => $s[
"base_skill_id"],
131 "tref_id" => $s[
"tref_id"],
133 "profile" => $profile->getTitle()
ilContainerLocalProfiles $container_local_profiles
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...
ilContainerSkills $container_skills
static _lookupTitle(int $a_obj_id, int $a_tref_id=0)
SkillProfileService $profile_service
ilSkillManagementSettings $skmg_settings
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
getSkillsForPresentationGUI()
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...
SkillTreeService $tree_service
Collector of skills for a container.
__construct(ilContainerSkills $a_cont_skills, ilContainerGlobalProfiles $a_cont_glb_profiles, ilContainerLocalProfiles $a_cont_lcl_profiles)
ilContainerGlobalProfiles $container_global_profiles