Browse Source

updated model

tags/0.1.0
Robin Thoni 9 years ago
parent
commit
78747ecfaa

+ 43
- 1
src/Auth/DBO/LuticateUsersDbo.php View File

@@ -18,7 +18,10 @@ class LuticateUsersDbo extends LuDbo {
18 18
             "Username" => $this->_username,
19 19
             "Email" => $this->_email,
20 20
             "Password" => $this->_password,
21
-            "Salt" => $this->_salt
21
+            "Salt" => $this->_salt,
22
+            "ProfileId" => $this->_profileId,
23
+            "Firstname" => $this->_firstname,
24
+            "Lastname" => $this->_lastname
22 25
         );
23 26
     }
24 27
 
@@ -86,4 +89,43 @@ class LuticateUsersDbo extends LuDbo {
86 89
     {
87 90
         $this->_salt = $value;
88 91
     }
92
+
93
+    /**
94
+     * @var integer
95
+     */
96
+    protected $_profileId;
97
+    public function getProfileId()
98
+    {
99
+        return $this->_profileId;
100
+    }
101
+    public function setProfileId($value)
102
+    {
103
+        $this->_profileId = $value;
104
+    }
105
+
106
+    /**
107
+     * @var string
108
+     */
109
+    protected $_firstname;
110
+    public function getFirstname()
111
+    {
112
+        return $this->_firstname;
113
+    }
114
+    public function setFirstname($value)
115
+    {
116
+        $this->_firstname = $value;
117
+    }
118
+
119
+    /**
120
+     * @var string
121
+     */
122
+    protected $_lastname;
123
+    public function getLastname()
124
+    {
125
+        return $this->_lastname;
126
+    }
127
+    public function setLastname($value)
128
+    {
129
+        $this->_lastname = $value;
130
+    }
89 131
 }

+ 1
- 0
src/Auth/DBO/LuticateUsersLightDbo.php View File

@@ -24,6 +24,7 @@ class LuticateUsersLightDbo extends LuticateUsersDbo
24 24
     {
25 25
         $array = parent::jsonSerialize();
26 26
         unset($array["Password"]);
27
+        unset($array["Token"]);
27 28
         unset($array["Salt"]);
28 29
         return $array;
29 30
     }

+ 6
- 0
src/Auth/DataAccess/Models/LuticateUsersModel.php View File

@@ -30,6 +30,9 @@ class LuticateUsersModel extends LuModel
30 30
         $dbo->setEmail($this->email);
31 31
         $dbo->setPassword($this->password);
32 32
         $dbo->setSalt($this->salt);
33
+        $dbo->setProfileId($this->profile_id);
34
+        $dbo->setFirstname($this->firstname);
35
+        $dbo->setLastname($this->lastname);
33 36
 
34 37
         return $dbo;
35 38
     }
@@ -49,6 +52,9 @@ class LuticateUsersModel extends LuModel
49 52
         $model->email = $dbo->getEmail();
50 53
         $model->password = $dbo->getPassword();
51 54
         $model->salt = $dbo->getSalt();
55
+        $model->profile_id = $dbo->getProfileId();
56
+        $model->firstname = $dbo->getFirstname();
57
+        $model->lastname = $dbo->getLastname();
52 58
 
53 59
         return $model;
54 60
     }

Loading…
Cancel
Save