CommentListingItem
        
        extends CommentItem
    
    
            
            in package
            
        
    
    
    
Class CommentItem.
Tags
Table of Contents
Properties
Methods
- getTransformContent() : string|null
 - isLike() : bool
 - toArray() : array<string, mixed>
 - Transform the resource collection into an array.
 - userMostReactions() : mixed
 - userReacted() : mixed
 - getChildrens() : ResourceCollection|null
 - getExtra() : array<string|int, mixed>
 - getRoleLabelInOwner() : string|null
 - getStatistic() : array<string, mixed>
 
Properties
$resource
    public
        Comment
    $resource
    
    
    
    
$resource
    public
        Comment
    $resource
    
    
    
    
Methods
getTransformContent()
    public
                    getTransformContent([bool $parseUserFullLink = false ]) : string|null
    Parameters
- $parseUserFullLink : bool = false
 
Return values
string|nullisLike()
    public
                    isLike(User $context[, Entity|null $content = null ]) : bool
    Parameters
Return values
booltoArray()
Transform the resource collection into an array.
    public
                    toArray(mixed $request) : array<string, mixed>
    Parameters
- $request : mixed
 
Return values
array<string, mixed>userMostReactions()
    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
getChildrens()
    protected
                    getChildrens() : ResourceCollection|null
    Return values
ResourceCollection|nullgetExtra()
    protected
                    getExtra() : array<string|int, mixed>
    Tags
Return values
array<string|int, mixed>getRoleLabelInOwner()
    protected
                    getRoleLabelInOwner(User|null $user, User|null $owner) : string|null
    Parameters
Return values
string|nullgetStatistic()
    protected
                    getStatistic() : array<string, mixed>