PhotoDetail
extends JsonResource
in package
Uses
PhotoHasExtra, HasStatistic, HasFeedParam, IsLikedTrait, UserReactedTrait, ShareFeedInfoTrait
Class PhotoDetail.
Table of Contents
Properties
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
$resource
public
Photo
$resource
Methods
getStatistic()
public
getStatistic() : array<string, mixed>
Return values
array<string, mixed>isLike()
public
isLike(User $context[, Entity|null $content = null ]) : bool
Parameters
Return values
booltoArray()
Transform the resource collection into an array.
public
toArray(Request $request) : array<string, mixed>
Parameters
- $request : Request
Tags
Return values
array<string, mixed>toFeedContent()
public
toFeedContent(HasFeedContent $item) : string|null
Parameters
- $item : HasFeedContent
Return values
string|nulltoLocation()
public
toLocation(HasLocationCheckin $item) : array<string|int, mixed>|null
Parameters
- $item : HasLocationCheckin
Return values
array<string|int, mixed>|nulluserMostReactions()
public
userMostReactions(User $context[, Entity|null $content = null ][, string|null $typeId = null ]) : mixed
Parameters
userReacted()
public
userReacted(User $context[, Entity|null $content = null ][, string|null $typeId = null ]) : mixed
Parameters
getCustomExtra()
protected
getCustomExtra() : array<string, bool>
Tags
Return values
array<string, bool>getFeedParams()
protected
getFeedParams() : FeedParamDetail
Return values
FeedParamDetailgetFeedTransformContent()
protected
getFeedTransformContent(Content $feed) : string|null
Parameters
- $feed : Content
Return values
string|nullparseFeedHashtags()
protected
parseFeedHashtags(HasHashTag $feed, string $content) : string
Parameters
- $feed : HasHashTag
- $content : string
Return values
stringgetSharedFeedInfos()
private
getSharedFeedInfos(User $context) : array<string|int, mixed>
Parameters
- $context : User