projects
/
Pman.Core
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
4efea4e
)
DataObjects/Core_person_signup.php
author
Micheal
<micheal@roojs.com>
Tue, 13 Jan 2015 08:38:58 +0000
(16:38 +0800)
committer
Micheal
<micheal@roojs.com>
Tue, 13 Jan 2015 08:38:58 +0000
(16:38 +0800)
DataObjects/Core_person_signup.php
patch
|
blob
|
history
diff --git
a/DataObjects/Core_person_signup.php
b/DataObjects/Core_person_signup.php
index
3e24f91
..
dbd673a
100644
(file)
--- a/
DataObjects/Core_person_signup.php
+++ b/
DataObjects/Core_person_signup.php
@@
-81,6
+81,27
@@
class Pman_Core_DataObjects_Core_person_signup extends DB_DataObject
return false;
}
return false;
}
+
+
+ function convertTo($table){
+ $t = DB_DataObject::factory($table);
+ $ret = $t->get('email',$this->email);
+ if($ret != 0){
+ return false;
+ }else{
+ $t->setFrom(array(
+ 'honor'=>$this->honor,
+ 'name'=>$this->name,
+ 'email'=>$this->email,
+ 'firstname'=>$this->firstname,
+ 'lastname'=>$this->lastname,
+ 'firstname_alt'=>$this->firstname_alt,
+ 'lastname_alt'=>$this->lastname_alt));
+
+ $t->insert();
+ return true;
+ }
+ }
}
\ No newline at end of file
}
\ No newline at end of file