User<T>
Represents a valid user of the system.
Instance Methods
| Returns | Signature and Description |
|---|---|
string | Gets the entity's display name. |
string | getEmail()Gets the user's email. |
ImmVector<Group<T>> | Gets any groups to which the owner belongs. |
T | getId()Gets the entity ID. |
Owner<T> | getOwner()Gets the user's owner, either a group, or itself. |
string | getSlug()Gets the URL slug for this entity. |
DateTimeZone | Gets the TimeZone for this entity. |
bool | Gets whether this group is disabled. |
array<string,mixed> | toArray()Converts this entity to an array. |
Method Details
getDisplayName
Inherited from Owner
getDisplayName()Gets the entity's display name.
| Type | Description |
|---|---|
string | The entity's display name |
getEmail
getEmail()Gets the user's email.
| Type | Description |
|---|---|
string | The user's email |
getGroups
getGroups()Gets any groups to which the owner belongs.
| Type | Description |
|---|---|
ImmVector<Group<T>> | The groups |
getId
Inherited from Owner
getId()Gets the entity ID.
| Type | Description |
|---|---|
T | The entity's ID |
getOwner
getOwner()Gets the user's owner, either a group, or itself.
| Type | Description |
|---|---|
Owner<T> | The owner record (possibly |
getSlug
Inherited from Owner
getSlug()Gets the URL slug for this entity.
| Type | Description |
|---|---|
string | The URL slug |
getTimeZone
Inherited from Owner
getTimeZone()Gets the TimeZone for this entity.
If the entity belongs to a parent record, e.g. a user belonging to a group, the parent value should be returned if none is available on this entity.
Should default to system time zone if none is available.
| Type | Description |
|---|---|
DateTimeZone | The owner's time zone |
isDisabled
Inherited from Owner
isDisabled()Gets whether this group is disabled.
| Type | Description |
|---|---|
bool | Whether the group is disabled |
toArray
Inherited from Owner
toArray()Converts this entity to an array.
| Type | Description |
|---|---|
array<string,mixed> | The array version |