DataObjects/Core_person_signup.php
authorEdward <edward@roojs.com>
Tue, 24 Feb 2015 09:11:40 +0000 (17:11 +0800)
committerEdward <edward@roojs.com>
Tue, 24 Feb 2015 09:11:40 +0000 (17:11 +0800)
DataObjects/Core_person_signup.php

index 3b66708..22fc4a9 100644 (file)
@@ -93,6 +93,19 @@ class Pman_Core_DataObjects_Core_person_signup extends DB_DataObject
 //        }
 //    }
 
+    function verified()
+    {
+        $hydra_person = DB_DataObject::factory('hydra_person');
+        
+        if($hydra_person->get('email', $this->email)){
+            return $hydra_person;
+        }
+        
+        $hydra_person->setFrom(array(
+            
+        ));
+    }
+    
     function sendVerification($template, $roo)
     {