DataObjects/Core_person_signup.php
authorEdward <edward@roojs.com>
Tue, 24 Feb 2015 08:45:37 +0000 (16:45 +0800)
committerEdward <edward@roojs.com>
Tue, 24 Feb 2015 08:45:37 +0000 (16:45 +0800)
DataObjects/Core_person_signup.php

index fb58c66..417ea05 100644 (file)
@@ -111,5 +111,13 @@ class Pman_Core_DataObjects_Core_person_signup extends DB_DataObject
         
         return false;
     }
+    
+    function getEmailFrom()
+    {
+        if (empty($this->name)) {
+            return $this->email;
+        }
+        return '"' . addslashes($this->name) . '" <' . $this->email . '>';
+    }
 }