MetaFox

FeedItem extends JsonResource
in package
Uses FeedSupport

Class FeedItem.

Do not use Gate in here to improve performance.

Table of Contents

Properties

$resource  : Feed

Methods

toArray()  : array<string, mixed>
Transform the resource collection into an array.
getActionResource()  : Entity
getBackgroundStatus()  : mixed
getEmbedObject()  : JsonResource|null
getHideAllService()  : ActivitySnoozeManager
getHideFeedService()  : ActivityHiddenManager
getLocation()  : array<string, mixed>|null
getRoleLabelInOwner()  : string|null
getStatistic()  : array<string, mixed>
getTaggedFriendsForFeed()  : array<string|int, mixed>
getTypeManager()  : TypeManager
isSponsored()  : bool
isTagged()  : bool
getRelatedComments()  : mixed

Properties

Methods

toArray()

Transform the resource collection into an array.

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

(PHPMD.CyclomaticComplexity)

SuppressWarnings

(PHPMD.UnusedFormalParameter)

Return values
array<string, mixed>

getBackgroundStatus()

protected getBackgroundStatus() : mixed

getEmbedObject()

protected getEmbedObject(Entity $item) : JsonResource|null
Parameters
$item : Entity
Return values
JsonResource|null

getLocation()

protected getLocation() : array<string, mixed>|null
Return values
array<string, mixed>|null

getRoleLabelInOwner()

protected getRoleLabelInOwner(User|null $user, User|null $owner) : string|null
Parameters
$user : User|null
$owner : User|null
Return values
string|null

getStatistic()

protected getStatistic() : array<string, mixed>
Return values
array<string, mixed>

getTaggedFriendsForFeed()

protected getTaggedFriendsForFeed([int $limit = 10 ]) : array<string|int, mixed>
Parameters
$limit : int = 10
Tags
throws
AuthorizationException
Return values
array<string|int, mixed>

isSponsored()

protected isSponsored(Request $request) : bool
Parameters
$request : Request
Return values
bool

isTagged()

protected isTagged(User $owner, int $profileId[, array<string|int, mixed> $taggedFriends = [] ]) : bool
Parameters
$owner : User
$profileId : int
$taggedFriends : array<string|int, mixed> = []
Return values
bool

getRelatedComments()

private getRelatedComments(User $context[, Entity|null $content = null ]) : mixed
Parameters
$context : User
$content : Entity|null = null

        
On this page

Search results