view one person + list

This commit is contained in:
2013-10-31 16:14:20 +01:00
parent d0c480802e
commit 03091a94d6
8 changed files with 241 additions and 0 deletions

View File

@@ -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();
}
}