Changeset 2546


Ignore:
Timestamp:
Jan 1, 2012, 6:11:11 AM (8 years ago)
Author:
goya
Message:

meilleur nom/prenom

File:
1 edited

Legend:

Unmodified
Added
Removed
  • cpc/trunk/project/lib/model/doctrine/Parlementaire.class.php

    r2469 r2546  
    4343
    4444  public function getNomPrenom() {
     45    return $this->getNomFamilleCorrect().", ".$this->getPrenom();
     46  }
     47
     48  public function getNomFamilleCorrect() {
    4549    $prenom = $this->getPrenom();
    46     $nom = str_replace($prenom.' ', '', $this->nom);
    47     return $nom.", ".$prenom;
     50    return str_replace($prenom.' ', '', $this->nom);
    4851  }
    4952
Note: See TracChangeset for help on using the changeset viewer.