| @@ 2269-2287 (lines=19) @@ | ||
| 2266 | * |
|
| 2267 | * @param string $serialized |
|
| 2268 | */ |
|
| 2269 | public function unserialize($serialized) |
|
| 2270 | { |
|
| 2271 | $data = unserialize($serialized); |
|
| 2272 | // add a few extra elements in the array to ensure that we have enough keys when unserializing |
|
| 2273 | // older data which does not include all properties. |
|
| 2274 | $data = array_merge($data, array_fill(0, 2, null)); |
|
| 2275 | ||
| 2276 | list( |
|
| 2277 | $this->password, |
|
| 2278 | $this->salt, |
|
| 2279 | $this->usernameCanonical, |
|
| 2280 | $this->username, |
|
| 2281 | $this->expired, |
|
| 2282 | $this->locked, |
|
| 2283 | $this->credentialsExpired, |
|
| 2284 | $this->enabled, |
|
| 2285 | $this->id |
|
| 2286 | ) = $data; |
|
| 2287 | } |
|
| 2288 | } |
|
| 2289 | ||
| @@ 2252-2270 (lines=19) @@ | ||
| 2249 | * |
|
| 2250 | * @param string $serialized |
|
| 2251 | */ |
|
| 2252 | public function unserialize($serialized) |
|
| 2253 | { |
|
| 2254 | $data = unserialize($serialized); |
|
| 2255 | // add a few extra elements in the array to ensure that we have enough keys when unserializing |
|
| 2256 | // older data which does not include all properties. |
|
| 2257 | $data = array_merge($data, array_fill(0, 2, null)); |
|
| 2258 | ||
| 2259 | list( |
|
| 2260 | $this->password, |
|
| 2261 | $this->salt, |
|
| 2262 | $this->usernameCanonical, |
|
| 2263 | $this->username, |
|
| 2264 | $this->expired, |
|
| 2265 | $this->locked, |
|
| 2266 | $this->credentialsExpired, |
|
| 2267 | $this->enabled, |
|
| 2268 | $this->id |
|
| 2269 | ) = $data; |
|
| 2270 | } |
|
| 2271 | ||
| 2272 | /** |
|
| 2273 | * Get achievedSkills |
|