public $verify_key; // int(11)
public $verified;
public $created_dt; // datetime(19) binary
+ public $company_name;
+ public $person_type;
// function verify($key)
// {
// }
// }
- function sendVerification($roo)
+ function convertTo($target = false)
+ {
+ if(!$target){
+ return false;
+ }
+
+ $roo = HTML_FlexyFramework::get()->page;
+
+ if($target->get('email', $this->email)){
+ return $target;
+ }
+
+ $target->setFrom($this->toArray());
+
+ $target->insert();
+
+ // ok - deleting might not be a great idea.... - as we can not track already confirmed codes..
+
+ //$this->delete();
+
+ return $target;
+ }
+
+ function sendVerification($template, $roo)
{
$content = array(
- 'template' => 'CORE_PERSON_SIGNUP_VERIFICATION',
+ 'template' => $template,
'person' => $this,
'serverName' => $_SERVER['SERVER_NAME'],
'baseURL' => $roo->baseURL
return true;
}
- return false;
+ return $sent;
}
function getEmailFrom()