4 * Table Definition for Person
6 require_once 'DB/DataObject.php';
8 class Pman_Core_DataObjects_Core_person_signup extends DB_DataObject
11 /* the code below is auto generated do not remove the above tag */
13 public $__table = 'core_person_signup'; // table name
14 public $id; // int(11) not_null primary_key auto_increment
15 public $email; // string(128) not_null
16 public $name; // string(128) not_null
17 public $firstname; // string(128) not_null
18 public $lastname; // string(128) not_null
19 public $firstname_alt; // string(128) not_null
20 public $lastname_alt; // string(128) not_null
21 public $honor; // string(128) not_null
22 public $verify_key; // int(11)
24 public $created_dt; // datetime(19) binary
26 // function verify($key)
28 // // if key matches verify_key
29 // // copy into person or other entity...
31 // if ($this->get("verify_key", $key)) {
32 // $p = DB_DataObject::factory('person');
34 // 'honor' => $this->honor,
35 // 'name' => $this->name,
36 // 'email' => $this->email,
37 // 'firstname' => $this->firstname,
38 // 'lastname' => $this->lastname,
39 // 'firstname_alt' => $this->firstname_alt,
40 // 'lastname_alt' => $this->lastname_alt));
42 // if ($p->insert()) {
44 // $temp_pwd = $p->generatePassword();
51 // $_SESSION['Hydra']['authUser'] = $p ? serialize($p) : false;
54 // $c = DB_DataObject::factory('core_email');
55 // if (!$c->get('name', 'CORE_PERSON_SIGNUP_CONGRATULATION')) {
56 // $this->jerr("can not find template");
58 // $ret = $c->send(array(
59 // 'rcpts' => $this->email,
60 // 'honor' => $this->honor . ". " . $this->lastname,
61 // 'password' => $temp_pwd
64 // if (is_object($ret)) {
75 // function convertTo($table)
77 // $t = DB_DataObject::factory($table);
78 // $ret = $t->get('email', $this->email);
83 // 'honor' => $this->honor,
84 // 'name' => $this->name,
85 // 'email' => $this->email,
86 // 'firstname' => $this->firstname,
87 // 'lastname' => $this->lastname,
88 // 'firstname_alt' => $this->firstname_alt,
89 // 'lastname_alt' => $this->lastname_alt));
96 function sendVerification()