X-Git-Url: http://git.polytechnique.org/?a=blobdiff_plain;f=include%2Fprofilefields.inc.php;h=61925756e8313f429ea19eb05ebe45e452d13245;hb=f3bfd6c9a14b70736b9416a1892d7548e160880b;hp=f34e3b8b9cf38d8efe3f252c1d5cbe73e57064d9;hpb=5b48ebf46ef939d701852d2117bbcf308036027c;p=platal.git diff --git a/include/profilefields.inc.php b/include/profilefields.inc.php index f34e3b8..6192575 100644 --- a/include/profilefields.inc.php +++ b/include/profilefields.inc.php @@ -148,14 +148,14 @@ class Company } } - public function setPhone(Phone &$phone) + public function setPhone(Phone $phone) { if ($phone->link_type == Phone::LINK_COMPANY && $phone->link_id == $this->id) { $this->phone = $phone; } } - public function setAddress(Address &$address) + public function setAddress(Address $address) { if ($address->type == Address::LINK_COMPANY && $address->jobid == $this->id) { $this->address = $address; @@ -221,7 +221,7 @@ class Job return $this->address; } - public function addPhone(Phone &$phone) + public function addPhone(Phone $phone) { if ($phone->link_type == Phone::LINK_JOB && $phone->link_id == $this->id && $phone->pid == $this->pid) { $this->phones[$phone->uniqueId()] = $phone; @@ -235,7 +235,7 @@ class Job } } - public function addTerm(JobTerm &$term) + public function addTerm(JobTerm $term) { $this->terms[$term->jtid] = $term; } @@ -662,7 +662,7 @@ class ProfileJobs extends ProfileField $terms = $jobterms->get(); foreach ($terms as $term) { if ($this->pid == $term->pid && array_key_exists($term->jid, $this->jobs)) { - $this->jobs[$term->jid]->addTerm(&$term); + $this->jobs[$term->jid]->addTerm($term); } } }