| 1 |
<?php if (! defined('ABSPATH')) exit; // Exit if accessed directly |
| 2 |
class HC3_Users_Model |
| 3 |
{ |
| 4 |
const STATUS_ACTIVE = 'active'; |
| 5 |
const STATUS_SUSPENDED = 'suspended'; |
| 6 |
const ROLE_ADMIN = 'admin'; |
| 7 |
|
| 8 |
private $id = NULL; |
| 9 |
private $displayName = NULL; |
| 10 |
private $email = NULL; |
| 11 |
private $username = NULL; |
| 12 |
|
| 13 |
public function __construct( $id, $username, $email, $displayName ) |
| 14 |
{ |
| 15 |
$this->id = $id; |
| 16 |
$this->username = $username; |
| 17 |
$this->email = $email; |
| 18 |
$this->displayName = $displayName; |
| 19 |
} |
| 20 |
|
| 21 |
public function getId() |
| 22 |
{ |
| 23 |
return $this->id; |
| 24 |
} |
| 25 |
|
| 26 |
public function getEmail() |
| 27 |
{ |
| 28 |
return $this->email; |
| 29 |
} |
| 30 |
|
| 31 |
public function getUsername() |
| 32 |
{ |
| 33 |
return $this->username; |
| 34 |
} |
| 35 |
|
| 36 |
public function getDisplayName() |
| 37 |
{ |
| 38 |
return $this->displayName; |
| 39 |
} |
| 40 |
} |
| 41 |
|