PluginProbe
ShiftController Employee Shift Scheduling / trunk
ShiftController Employee Shift Scheduling vtrunk
4.9.97 4.9.96 4.9.95 4.9.74 4.9.75 4.9.76 4.9.77 4.9.78 4.9.84 4.9.85 4.9.87 4.9.91 4.9.92 trunk 2.1.0 2.1.1 2.1.2 2.2.0 2.2.1 2.2.2 2.2.3 2.2.4 2.2.5 2.2.6 3.2.4 All 38 releases
shiftcontroller / hc3 / users / model.php

model.php in ShiftController Employee Shift Scheduling trunk, at hc3/users/model.php

41 lines 769 B
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
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