53 $this->container_skills = $a_cont_skills;
54 $this->container_global_profiles = $a_cont_glb_profiles;
55 $this->container_local_profiles = $a_cont_lcl_profiles;
69 $this->tab_skills = array_merge($s_skills, $p_skills);
73 $this->tab_skills = $vtree->getOrderedNodeset($this->tab_skills,
"base_skill_id",
"tref_id");
91 $p_skills[$ps[
"base_skill_id"] .
"-" . $ps[
"tref_id"]] = array(
92 "base_skill_id" => $ps[
"base_skill_id"],
93 "tref_id" => $ps[
"tref_id"],
94 "title" => $ps[
"title"],
95 "profile" => $ps[
"profile"]
99 $this->pres_skills = array_merge($s_skills, $p_skills);
111 $s_skills = array_map(
function ($v) {
113 "base_skill_id" => $v[
"skill_id"],
114 "tref_id" => $v[
"tref_id"],
117 }, $this->container_skills->getSkills());
131 if ($this->skmg_settings->getLocalAssignmentOfProfiles()) {
132 foreach ($this->container_global_profiles->getProfiles() as $gp) {
134 $sklvs = $profile->getSkillLevels();
135 foreach ($sklvs as $s) {
137 "base_skill_id" => $s[
"base_skill_id"],
138 "tref_id" => $s[
"tref_id"],
140 "profile" => $profile->getTitle()
147 if ($this->skmg_settings->getAllowLocalProfiles()) {
148 foreach ($this->container_local_profiles->getProfiles() as $lp) {
150 $sklvs = $profile->getSkillLevels();
151 foreach ($sklvs as $s) {
153 "base_skill_id" => $s[
"base_skill_id"],
154 "tref_id" => $s[
"tref_id"],
156 "profile" => $profile->getTitle()
Skill management settings.
$container_local_profiles
getSingleSkills()
Get single skills of container.
$container_global_profiles
Global competence profiles of a container.
getSkillsForPresentationGUI()
Get all skills for presentation gui.
getProfileSkills()
Get profile skills of container.
static _lookupTitle($a_obj_id, $a_tref_id=0)
Lookup Title.
Local competence profiles of a container.
Collector of skills for a container.
__construct(ilContainerSkills $a_cont_skills, ilContainerGlobalProfiles $a_cont_glb_profiles, ilContainerLocalProfiles $a_cont_lcl_profiles)
Constructor.