Add isDead function to Profile
authorRaphaël Barrois <raphael.barrois@polytechnique.org>
Sat, 20 Mar 2010 10:38:29 +0000 (11:38 +0100)
committerRaphaël Barrois <raphael.barrois@polytechnique.org>
Mon, 22 Mar 2010 13:07:56 +0000 (14:07 +0100)
Signed-off-by: Raphaël Barrois <raphael.barrois@polytechnique.org>
classes/profile.php

index 4758abb..e4fcf43 100644 (file)
@@ -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;