User
extends
Content, BigNumberId, PlatformRole, HasLocalePreference
in
Interface User.
Tags
Table of Contents
Methods
- activity_feed() : MorphOne|null
- canBeBlocked() : bool
- Determine if resource can be blocked.
- decrementAmount() : int
- disableFeedSponsor() : void
- disableSponsor() : void
- enableFeedSponsor() : void
- enableSponsor() : void
- entityId() : int
- entityType() : string
- getApprovedMessage() : string|null
- getDeclinedMessage() : string|null
- getItemPrivacy() : int|null
- Indicates its content has privacy.
- getOwnerPendingMessage() : string|null
- getPendingMessage() : string|null
- getPermissionValue() : mixed
- Determine if the user may perform the given permission.
- getRepresentativePrivacy() : int|null
- getRepresentativePrivacyDetail() : array<string, mixed>|null
- getSmallestRoleId() : int
- This method shall return the highest priority role base on user role level.
- hasAdminRole() : bool
- hasContentPrivacy() : bool
- Indicates this has content-based privacy, so it will be treated as a regular content (like Blog, Poll) when checking for view privacy.
- hasPendingMode() : bool
- hasPermissionValue() : bool
- Determine if the user may perform the given permission.
- hasStaffRole() : bool
- hasSuperAdminRole() : bool
- incrementAmount() : int
- isApproved() : bool
- isDeleted() : bool
- isDraft() : bool
- isGuest() : bool
- isOwnerPending() : bool
- isPendingMode() : bool|null
- isPublished() : bool
- isSponsored() : bool
- isSponsoredInFeed() : bool
- isTaggingAllowed() : bool
- moduleName() : string
- owner() : User|MorphTo|BelongsTo
- ownerEntity() : UserEntity|BelongsTo
- ownerId() : int
- ownerType() : string
- privacyItem() : self|null
- Get indicate item handle privacy logic.
- reactItem() : self
- Get indicate item handle privacy logic.
- setEntityId() : void
- toDeclinedContentLink() : string|null
- toDeclinedContentUrl() : string|null
- toLink() : string|null
- toRouter() : string|null
- toSponsorData() : array<string|int, mixed>|null
- toTitle() : string
- toUrl() : string|null
- toUserResource() : array<string, mixed>
- user() : User|MorphTo|BelongsTo
- userEntity() : UserEntity|BelongsTo
- userId() : int
- userType() : string
Methods
activity_feed()
public
activity_feed() : MorphOne|null
Tags
Return values
MorphOne|nullcanBeBlocked()
Determine if resource can be blocked.
public
canBeBlocked() : bool
Return values
booldecrementAmount()
public
decrementAmount(string $column[, int $amount = 1 ]) : int
Parameters
- $column : string
- $amount : int = 1
Return values
intdisableFeedSponsor()
public
disableFeedSponsor() : void
disableSponsor()
public
disableSponsor() : void
enableFeedSponsor()
public
enableFeedSponsor() : void
enableSponsor()
public
enableSponsor() : void
entityId()
public
entityId() : int
Return values
intentityType()
public
entityType() : string
Return values
stringgetApprovedMessage()
public
getApprovedMessage() : string|null
Return values
string|nullgetDeclinedMessage()
public
getDeclinedMessage() : string|null
Return values
string|nullgetItemPrivacy()
Indicates its content has privacy.
public
getItemPrivacy() : int|null
Return values
int|nullgetOwnerPendingMessage()
public
getOwnerPendingMessage() : string|null
Return values
string|nullgetPendingMessage()
public
getPendingMessage() : string|null
Return values
string|nullgetPermissionValue()
Determine if the user may perform the given permission.
public
getPermissionValue(string|Permission $permission) : mixed
Parameters
- $permission : string|Permission
Tags
getRepresentativePrivacy()
public
getRepresentativePrivacy() : int|null
Return values
int|nullgetRepresentativePrivacyDetail()
public
getRepresentativePrivacyDetail(int $privacy) : array<string, mixed>|null
Parameters
- $privacy : int
Return values
array<string, mixed>|nullgetSmallestRoleId()
This method shall return the highest priority role base on user role level.
public
getSmallestRoleId() : int
Return values
inthasAdminRole()
public
hasAdminRole() : bool
Return values
boolhasContentPrivacy()
Indicates this has content-based privacy, so it will be treated as a regular content (like Blog, Poll) when checking for view privacy.
public
hasContentPrivacy() : bool
Return values
boolhasPendingMode()
public
hasPendingMode() : bool
Return values
boolhasPermissionValue()
Determine if the user may perform the given permission.
public
hasPermissionValue(string|Permission $permission) : bool
Parameters
- $permission : string|Permission
Tags
Return values
boolhasStaffRole()
public
hasStaffRole() : bool
Return values
boolhasSuperAdminRole()
public
hasSuperAdminRole() : bool
Return values
boolincrementAmount()
public
incrementAmount(string $column[, int $amount = 1 ]) : int
Parameters
- $column : string
- $amount : int = 1
Return values
intisApproved()
public
isApproved() : bool
Return values
boolisDeleted()
public
isDeleted() : bool
Return values
boolisDraft()
public
isDraft() : bool
Return values
boolisGuest()
public
isGuest() : bool
Return values
boolisOwnerPending()
public
isOwnerPending() : bool
Return values
boolisPendingMode()
public
isPendingMode() : bool|null
Return values
bool|nullisPublished()
public
isPublished() : bool
Return values
boolisSponsored()
public
isSponsored() : bool
Return values
boolisSponsoredInFeed()
public
isSponsoredInFeed() : bool
Return values
boolisTaggingAllowed()
public
isTaggingAllowed() : bool
Return values
boolmoduleName()
public
moduleName() : string
Return values
stringowner()
public
owner() : User|MorphTo|BelongsTo
Return values
User|MorphTo|BelongsToownerEntity()
public
ownerEntity() : UserEntity|BelongsTo
Return values
UserEntity|BelongsToownerId()
public
ownerId() : int
Return values
intownerType()
public
ownerType() : string
Return values
stringprivacyItem()
Get indicate item handle privacy logic.
public
privacyItem() : self|null
Return values
self|nullreactItem()
Get indicate item handle privacy logic.
public
reactItem() : self
Return values
selfsetEntityId()
public
setEntityId(int $id) : void
Parameters
- $id : int
toDeclinedContentLink()
public
toDeclinedContentLink() : string|null
Return values
string|nulltoDeclinedContentUrl()
public
toDeclinedContentUrl() : string|null
Return values
string|nulltoLink()
public
toLink() : string|null
Return values
string|nulltoRouter()
public
toRouter() : string|null
Return values
string|nulltoSponsorData()
public
toSponsorData() : array<string|int, mixed>|null
Return values
array<string|int, mixed>|nulltoTitle()
public
toTitle() : string
Return values
stringtoUrl()
public
toUrl() : string|null
Return values
string|nulltoUserResource()
public
toUserResource() : array<string, mixed>
Return values
array<string, mixed>user()
public
user() : User|MorphTo|BelongsTo
Return values
User|MorphTo|BelongsTouserEntity()
public
userEntity() : UserEntity|BelongsTo
Return values
UserEntity|BelongsTouserId()
public
userId() : int
Return values
intuserType()
public
userType() : string