From: Raphaël Barrois Date: Sat, 20 Mar 2010 10:38:29 +0000 (+0100) Subject: Add isDead function to Profile X-Git-Tag: xorg/1.0.0~332^2~28 X-Git-Url: http://git.polytechnique.org/?a=commitdiff_plain;h=400ac3385ced8ea2e8a1e345048af2b2f4003359;p=platal.git Add isDead function to Profile Signed-off-by: Raphaël Barrois --- diff --git a/classes/profile.php b/classes/profile.php index 4758abb..e4fcf43 100644 --- a/classes/profile.php +++ b/classes/profile.php @@ -225,6 +225,11 @@ class Profile return $this->sex == PlUser::GENDER_FEMALE; } + public function isDead() + { + return ($this->deathdate != null); + } + public function data() { $this->first_name;