public $verify_key; // int(11)
public $verified;
public $created_dt; // datetime(19) binary
+ public $company_name;
+ public $person_type;
+
+ public $person_id;
+ public $person_table;
// function verify($key)
// {
// }
// }
- function verified()
+ function convertTo($target = false)
{
- $hydra_person = DB_DataObject::factory('hydra_person');
+ if(!$target){
+ return false;
+ }
- if($hydra_person->get('email', $this->email)){
- return $hydra_person;
+ $roo = HTML_FlexyFramework::get()->page;
+
+ if($target->get('email', $this->email)){
+ return $target;
}
- $hydra_person->setFrom($this->toArray());
-// $hydra_person->e
+ $target->setFrom($this->toArray());
+
+ $target->insert();
+
+ $this->person_id = $target->id;
+ // ok - deleting might not be a great idea.... - as we can not track already confirmed codes..
+
+ //$this->delete();
+
+ return $target;
}
function sendVerification($template, $roo)
return true;
}
- return false;
+ return $sent;
}
function getEmailFrom()