MetaFox

PhotoDetail extends JsonResource
in package
Uses PhotoHasExtra, HasStatistic, HasFeedParam, IsLikedTrait, UserReactedTrait, ShareFeedInfoTrait

Class PhotoDetail.

Table of Contents

Properties

$resource  : Photo

Methods

getStatistic()  : array<string, mixed>
isLike()  : bool
toArray()  : array<string, mixed>
Transform the resource collection into an array.
toFeedContent()  : string|null
toLocation()  : array<string|int, mixed>|null
userMostReactions()  : mixed
userReacted()  : mixed
getCustomExtra()  : array<string, bool>
getFeedParams()  : FeedParamDetail
getFeedTransformContent()  : string|null
parseFeedHashtags()  : string
getSharedFeedInfos()  : array<string|int, mixed>

Properties

Methods

getStatistic()

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

toArray()

Transform the resource collection into an array.

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

(PHPMD.UnusedFormalParameter)

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

getCustomExtra()

protected getCustomExtra() : array<string, bool>
Tags
throws
AuthenticationException
Return values
array<string, bool>

getSharedFeedInfos()

private getSharedFeedInfos(User $context) : array<string|int, mixed>
Parameters
$context : User
Return values
array<string|int, mixed>

        
On this page

Search results