// }
// }
- function verified()
+ function convertTo($target = false)
{
- $hydra_person = DB_DataObject::factory('hydra_person');
+ if(!$target){
+ return false;
+ }
+
+ $roo = HTML_FlexyFramework::get()->page;
- if($hydra_person->get('email', $this->email)){
- return $hydra_person;
+ if($target->get('email', $this->email)){
+ return $target;
}
- $hydra_person->setFrom($this->toArray());
- $hydra_person->employer_name = $this->company_name;
+ $target->setFrom($this->toArray());
+
+ $target->insert();
- $hydra_person->insert();
- $hydra_person->onInsert();
+ $this->delete();
+
+ return $target;
}
function sendVerification($template, $roo)
);
$sent = DB_DataObject::factory('core_email')->send($content);
-
+ print_R($sent);exit;
if(!is_object($sent)){
return true;
}