X-Git-Url: http://git.polytechnique.org/?a=blobdiff_plain;f=modules%2Fprofile%2Fskills.inc.php;h=7fed7470a5fa7267b1d61042696e185a8c2f8042;hb=66c4bdaf7813c6dd607a275ab9a2ef163d8b0a51;hp=4a8c579214b4fb5beb6cff984256381dfd7d3120;hpb=071c426905dc545b48b8ad811581fd2a87f6b5ef;p=platal.git diff --git a/modules/profile/skills.inc.php b/modules/profile/skills.inc.php index 4a8c579..7fed747 100644 --- a/modules/profile/skills.inc.php +++ b/modules/profile/skills.inc.php @@ -76,9 +76,17 @@ class ProfileSettingSkill implements ProfileSetting $page->pid(), $id, $skill['level']); } } + + public function getText($value) { + $skills = array(); + foreach ($value as $skill) { + $skills[] = 'Compétance : ' . $skill['text'] . ', niveau : ' . $skill['level']; + } + return implode(' ; ' , $skills); + } } -class ProfileSettingSkills extends ProfilePage +class ProfilePageSkills extends ProfilePage { protected $pg_template = 'profile/skill.tpl';