UserDetail
extends JsonResource
in package
Uses
ExtraTrait, UserStatisticTrait, UserLocationTrait, FriendStatisticTrait
Class UserDetail.
Tags
Table of Contents
Properties
Methods
- canViewLocation() : bool
- getExtra() : array<string|int, mixed>
- getExtraAttributes() : array<string|int, mixed>
- getLocation() : array<string, mixed>
- getLocationValue() : string
- toArray() : array<string, mixed>
- Transform the resource collection into an array.
- getAvatarId() : int|null
- This method shall be removed from version 5.2 Temporary solution for mobile app to avoid crash.
- getAvatarResources() : JsonResource|null
- getCoverResources() : JsonResource|null
- getCustomProfile() : string|null
- getFriendStatistic() : array<string, mixed>
- getPrivacyFeed() : array<string|int, mixed>|null
- getStatistic() : array<string, mixed>
- isBlocked() : bool
Properties
$resource
public
User
$resource
Methods
canViewLocation()
public
canViewLocation(User $context, User $user) : bool
Parameters
Return values
boolgetExtra()
public
getExtra([mixed $resolution = null ]) : array<string|int, mixed>
Parameters
- $resolution : mixed = null
Return values
array<string|int, mixed>getExtraAttributes()
public
getExtraAttributes(User $context) : array<string|int, mixed>
Parameters
- $context : User
Return values
array<string|int, mixed>getLocation()
public
getLocation(User $context, User $resource) : array<string, mixed>
Parameters
Return values
array<string, mixed>getLocationValue()
public
getLocationValue(User $context, mixed $resource) : string
Parameters
- $context : User
- $resource : mixed
Return values
stringtoArray()
Transform the resource collection into an array.
public
toArray(Request $request) : array<string, mixed>
Parameters
- $request : Request
Tags
Return values
array<string, mixed>getAvatarId()
This method shall be removed from version 5.2 Temporary solution for mobile app to avoid crash.
protected
getAvatarId(User $context, User|null $user) : int|null
Parameters
Tags
Return values
int|nullgetAvatarResources()
protected
getAvatarResources() : JsonResource|null
Return values
JsonResource|nullgetCoverResources()
protected
getCoverResources() : JsonResource|null
Return values
JsonResource|nullgetCustomProfile()
protected
getCustomProfile(array<string|int, mixed> $customs, string $key[, bool $parseUrl = true ]) : string|null
Parameters
- $customs : array<string|int, mixed>
- $key : string
- $parseUrl : bool = true
Return values
string|nullgetFriendStatistic()
protected
getFriendStatistic() : array<string, mixed>
Return values
array<string, mixed>getPrivacyFeed()
protected
getPrivacyFeed() : array<string|int, mixed>|null
Return values
array<string|int, mixed>|nullgetStatistic()
protected
getStatistic() : array<string, mixed>
Tags
Return values
array<string, mixed>isBlocked()
protected
isBlocked() : bool