| @@ 2360-2378 (lines=19) @@ | ||
| 2357 | * |
|
| 2358 | * @param string $serialized |
|
| 2359 | */ |
|
| 2360 | public function unserialize($serialized) |
|
| 2361 | { |
|
| 2362 | $data = unserialize($serialized); |
|
| 2363 | // add a few extra elements in the array to ensure that we have enough keys when unserializing |
|
| 2364 | // older data which does not include all properties. |
|
| 2365 | $data = array_merge($data, array_fill(0, 2, null)); |
|
| 2366 | ||
| 2367 | list( |
|
| 2368 | $this->password, |
|
| 2369 | $this->salt, |
|
| 2370 | $this->usernameCanonical, |
|
| 2371 | $this->username, |
|
| 2372 | $this->expired, |
|
| 2373 | $this->locked, |
|
| 2374 | $this->credentialsExpired, |
|
| 2375 | $this->enabled, |
|
| 2376 | $this->id |
|
| 2377 | ) = $data; |
|
| 2378 | } |
|
| 2379 | } |
|
| 2380 | ||
| @@ 2434-2452 (lines=19) @@ | ||
| 2431 | * |
|
| 2432 | * @param string $serialized |
|
| 2433 | */ |
|
| 2434 | public function unserialize($serialized) |
|
| 2435 | { |
|
| 2436 | $data = unserialize($serialized); |
|
| 2437 | // add a few extra elements in the array to ensure that we have enough keys when unserializing |
|
| 2438 | // older data which does not include all properties. |
|
| 2439 | $data = array_merge($data, array_fill(0, 2, null)); |
|
| 2440 | ||
| 2441 | list( |
|
| 2442 | $this->password, |
|
| 2443 | $this->salt, |
|
| 2444 | $this->usernameCanonical, |
|
| 2445 | $this->username, |
|
| 2446 | $this->expired, |
|
| 2447 | $this->locked, |
|
| 2448 | $this->credentialsExpired, |
|
| 2449 | $this->enabled, |
|
| 2450 | $this->id |
|
| 2451 | ) = $data; |
|
| 2452 | } |
|
| 2453 | ||
| 2454 | /** |
|
| 2455 | * Get achievedSkills |
|