mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-08-23 16:13:50 +00:00
view one person + list
This commit is contained in:
@@ -221,6 +221,18 @@ ou une valeur vide lorsque la donnée nest pas connue*/
|
||||
{
|
||||
return $this->genre;
|
||||
}
|
||||
|
||||
/**
|
||||
* return gender as a Numeric form.
|
||||
* Useful for translation :-)
|
||||
* @return int
|
||||
*/
|
||||
public function getGenreNumeric() {
|
||||
if ($this->getGenre() == self::GENRE_WOMAN)
|
||||
return 1;
|
||||
else
|
||||
return 0;
|
||||
}
|
||||
|
||||
/**
|
||||
* Set civil_union
|
||||
@@ -405,4 +417,12 @@ ou une valeur vide lorsque la donnée nest pas connue*/
|
||||
{
|
||||
return $this->nationality;
|
||||
}
|
||||
|
||||
public function getLabel() {
|
||||
return $this->getSurname()." ".$this->getName();
|
||||
}
|
||||
|
||||
public function __toString() {
|
||||
return $this->getLabel();
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user