MetaFox

CommentEmbed extends CommentItem
in package

Class CommentEmbed.

Tags
SuppressWarnings

(PHPMD.UnusedFormalParameter)

Table of Contents

Properties

$resource  : Comment
$resource  : Comment

Methods

getTransformContent()  : string|null
isLike()  : bool
toArray()  : array<string, mixed>
Transform the resource collection into an array.
userMostReactions()  : mixed
userReacted()  : mixed
getExtra()  : array<string|int, mixed>
getRoleLabelInOwner()  : string|null
getStatistic()  : array<string, mixed>

Properties

Methods

getTransformContent()

public getTransformContent([bool $parseUserFullLink = false ]) : string|null
Parameters
$parseUserFullLink : bool = false
Return values
string|null

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

getExtra()

protected getExtra() : array<string|int, mixed>
Tags
throws
AuthenticationException
Return values
array<string|int, mixed>

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>

        
On this page

Search results