MetaFox

FeedParamDetail extends JsonResource
in package
Uses IsLikedTrait, IsFriendTrait, UserReactedTrait, FeedParamItemTrait

Tags
SuppressWarnings

(PHPMD.UnusedFormalParameter)

Table of Contents

Properties

$resource  : Content

Methods

canAddFriend()  : bool
countTotalFriend()  : int
countTotalFriendRequest()  : int
countTotalMutualFriend()  : int
getTaggedFriend()  : mixed
getTaggedFriendItems()  : array<string|int, mixed>
getTaggedFriends()  : Builder|null
isFriend()  : bool
isLike()  : bool
relatedCommentsItemDetail()  : JsonResource
toArray()  : array<string, mixed>
Transform the resource collection into an array.
userMostReactions()  : mixed
userReacted()  : mixed
getRelevantComments()  : ResourceCollection|null

Properties

Methods

canAddFriend()

public canAddFriend(User $context[, User|null $user = null ]) : bool
Parameters
$context : User
$user : User|null = null
Return values
bool

countTotalFriend()

public countTotalFriend(int $userId) : int
Parameters
$userId : int
Return values
int

countTotalFriendRequest()

public countTotalFriendRequest(User $user) : int
Parameters
$user : User
Return values
int

countTotalMutualFriend()

public countTotalMutualFriend(int $contextId, int $userId) : int
Parameters
$contextId : int
$userId : int
Return values
int

getTaggedFriendItems()

public getTaggedFriendItems(HasTaggedFriend $item[, int $limit = 10 ]) : array<string|int, mixed>
Parameters
$item : HasTaggedFriend
$limit : int = 10
Tags
throws
AuthorizationException
Return values
array<string|int, mixed>

getTaggedFriends()

public getTaggedFriends(Entity|null $item[, int $limit = 10 ][, array<string|int, mixed> $excludedIds = [] ]) : Builder|null
Parameters
$item : Entity|null
$limit : int = 10
$excludedIds : array<string|int, mixed> = []
Return values
Builder|null

isFriend()

public isFriend(User $context[, User|null $user = null ]) : bool
Parameters
$context : User
$user : User|null = null
Return values
bool

relatedCommentsItemDetail()

public relatedCommentsItemDetail(User $context[, Entity|null $content = null ][, int $limit = 6 ]) : JsonResource
Parameters
$context : User
$content : Entity|null = null
$limit : int = 6
Return values
JsonResource

toArray()

Transform the resource collection into an array.

public toArray(Request $request) : array<string, mixed>
Parameters
$request : Request
Tags
throws
AuthenticationException
Return values
array<string, mixed>

userMostReactions()

public userMostReactions(User $context[, Entity|null $content = null ][, string|null $typeId = null ]) : mixed
Parameters
$context : User
$content : Entity|null = null
$typeId : string|null = null

userReacted()

public userReacted(User $context[, Entity|null $content = null ][, string|null $typeId = null ]) : mixed
Parameters
$context : User
$content : Entity|null = null
$typeId : string|null = null

getRelevantComments()

protected getRelevantComments() : ResourceCollection|null
Return values
ResourceCollection|null

        
On this page

Search results