User
extends Facade
in package
Class User.
Tags
Table of Contents
Methods
- array() : void
- getAddress() : string
- getFirstName() : string
- getFriendship() : int
- getGender() : string|null
- getGuestUser() : Authenticatable
- getLastName() : string
- getMentions() : array<string|int, int>
- getNotificationSettingsByChannel() : array<string|int, mixed>
- getPossessiveGender() : string
- getShortName() : string
- getSummary() : string
- getTimeZoneForForm() : array<string|int, mixed>
- getTimeZoneNameById() : string|null
- getUserAge() : int|null
- getUsersByRoleId() : array<string|int, Builder>|Collection
- hasPendingSubscription() : array<string|int, mixed>
- isBan() : bool
- isFollowing() : bool
- totalFollowers() : string
- updateInvisibleMode() : User
- updateLastActivity() : bool
- updateLastLogin() : bool
- updateNotificationSettingsByChannel() : bool
- getFacadeAccessor() : string
Methods
array()
public
static array() : void
<string, mixed> getVideoSettings(ContractUser $user)
getAddress()
public
static getAddress(User $context, User $user) : string
Parameters
Return values
stringgetFirstName()
public
static getFirstName(string $name) : string
Parameters
- $name : string
Return values
stringgetFriendship()
public
static getFriendship(User $user, User $targetUser) : int
Parameters
Return values
intgetGender()
public
static getGender(UserProfile $profile) : string|null
Parameters
- $profile : UserProfile
Return values
string|nullgetGuestUser()
public
static getGuestUser() : Authenticatable
Return values
AuthenticatablegetLastName()
public
static getLastName(string $name) : string
Parameters
- $name : string
Return values
stringgetMentions()
public
static getMentions(string $content) : array<string|int, int>
Parameters
- $content : string
Return values
array<string|int, int>getNotificationSettingsByChannel()
public
static getNotificationSettingsByChannel(User $context, string $channel) : array<string|int, mixed>
Parameters
- $context : User
- $channel : string
Return values
array<string|int, mixed>getPossessiveGender()
public
static getPossessiveGender(UserGender|null $gender) : string
Parameters
- $gender : UserGender|null
Return values
stringgetShortName()
public
static getShortName(string $name) : string
Parameters
- $name : string
Return values
stringgetSummary()
public
static getSummary(User $context, User $user) : string
Parameters
Return values
stringgetTimeZoneForForm()
public
static getTimeZoneForForm() : array<string|int, mixed>
Return values
array<string|int, mixed>getTimeZoneNameById()
public
static getTimeZoneNameById(int $id) : string|null
Parameters
- $id : int
Return values
string|nullgetUserAge()
public
static getUserAge(string|null $birthday) : int|null
Parameters
- $birthday : string|null
Return values
int|nullgetUsersByRoleId()
public
static getUsersByRoleId(int $roleId) : array<string|int, Builder>|Collection
Parameters
- $roleId : int
Return values
array<string|int, Builder>|CollectionhasPendingSubscription()
public
static hasPendingSubscription(Request $request, User $user, bool $isMobile) : array<string|int, mixed>
Parameters
- $request : Request
- $user : User
- $isMobile : bool
Return values
array<string|int, mixed>isBan()
public
static isBan(int $userId) : bool
Parameters
- $userId : int
Return values
boolisFollowing()
public
static isFollowing(User $context, User $user) : bool
Parameters
Return values
booltotalFollowers()
public
static totalFollowers(User $user) : string
Parameters
- $user : User
Return values
stringupdateInvisibleMode()
public
static updateInvisibleMode(User $context, int $isInvisible) : User
Parameters
- $context : User
- $isInvisible : int
Return values
UserupdateLastActivity()
public
static updateLastActivity(User $context) : bool
Parameters
- $context : User
Return values
boolupdateLastLogin()
public
static updateLastLogin(User $context) : bool
Parameters
- $context : User
Return values
boolupdateNotificationSettingsByChannel()
public
static updateNotificationSettingsByChannel(User $context, array<string|int, mixed> $attributes) : bool
Parameters
- $context : User
- $attributes : array<string|int, mixed>
Return values
boolgetFacadeAccessor()
protected
static getFacadeAccessor() : string