X-Git-Url: http://git.polytechnique.org/?a=blobdiff_plain;f=modules%2Fprofile%2Fskills.inc.php;h=31458113e33b6999fbf7c305097c87f2d19af547;hb=98d858e523a7c7509bdff56e23cec4f435e93e02;hp=2ad367e7e45791d0e84a5764396d8858484821a5;hpb=43c653a10a1c75be317696bf4c66db555606d39e;p=platal.git diff --git a/modules/profile/skills.inc.php b/modules/profile/skills.inc.php index 2ad367e..3145811 100644 --- a/modules/profile/skills.inc.php +++ b/modules/profile/skills.inc.php @@ -34,7 +34,7 @@ class ProfileSettingSkill implements ProfileSetting $this->text_field = $text; } - public function value(ProfilePage &$page, $field, $value, &$success) + public function value(ProfilePage $page, $field, $value, &$success) { if (is_null($value)) { $value = array(); @@ -64,7 +64,7 @@ class ProfileSettingSkill implements ProfileSetting return $value; } - public function save(ProfilePage &$page, $field, $value) + public function save(ProfilePage $page, $field, $value) { XDB::execute("DELETE FROM profile_{$this->table}s WHERE pid = {?}", @@ -108,14 +108,14 @@ class ProfilePageSkills extends ProfilePage { protected $pg_template = 'profile/skill.tpl'; - public function __construct(PlWizard &$wiz) + public function __construct(PlWizard $wiz) { parent::__construct($wiz); $this->settings['competences'] = new ProfileSettingSkill('skill', 'id', 'cid', 'text_fr'); $this->settings['langues'] = new ProfileSettingSkill('langskill', 'iso_639_2b', 'lid', 'language'); } - public function _prepare(PlPage &$page, $id) + public function _prepare(PlPage $page, $id) { $page->assign('comp_list', XDB::iterator("SELECT id, text_fr, FIND_IN_SET('titre',flags) AS title FROM profile_skill_enum"));