MetaFox

CommentHistory extends Model
in package
implements HasItemMorph, Entity Uses HasEntity, HasUserMorph, HasItemMorph

Class CommentHistory.

Table of Contents

Interfaces

HasItemMorph
Entity
Interface Entity.

Constants

ENTITY_TYPE  = 'comment_histories'
PHRASE_COLUMNS_ADDED  = 'comment_add_photo'
PHRASE_COLUMNS_DELETED  = 'comment_delete_photo'
PHRASE_COLUMNS_UPDATED  = 'comment_update_photo'
PHRASE_STICKER_ADDED  = 'comment_add_sticker'
PHRASE_STICKER_DELETED  = 'comment_delete_sticker'
PHRASE_STICKER_UPDATED  = 'comment_update_sticker'

Properties

$content  : string
$created_at  : string
$description  : string
$id  : int
$image_path  : string|null
$params  : string
$phrase  : string
$server_id  : string
$text_parsed  : string
$updated_at  : string
$casts  : array<string, mixed>
$fillable  : array<string|int, string>
$table  : mixed

Methods

entityId()  : int
entityType()  : string
getDescriptionAttribute()  : string|null
getItemAttribute()  : mixed
getTextParsedAttribute()  : string
getUserAttribute()  : mixed
getUserEntityAttribute()  : mixed
isUser()  : bool
check if $user is the user (creator) of entity.
item()  : MorphTo|null
itemId()  : int
itemType()  : string
moduleName()  : string
user()  : MorphTo
userEntity()  : BelongsTo
userId()  : int
userType()  : string
booted()  : mixed

Constants

PHRASE_COLUMNS_ADDED

public mixed PHRASE_COLUMNS_ADDED = 'comment_add_photo'

PHRASE_COLUMNS_DELETED

public mixed PHRASE_COLUMNS_DELETED = 'comment_delete_photo'

PHRASE_COLUMNS_UPDATED

public mixed PHRASE_COLUMNS_UPDATED = 'comment_update_photo'

PHRASE_STICKER_ADDED

public mixed PHRASE_STICKER_ADDED = 'comment_add_sticker'

PHRASE_STICKER_DELETED

public mixed PHRASE_STICKER_DELETED = 'comment_delete_sticker'

PHRASE_STICKER_UPDATED

public mixed PHRASE_STICKER_UPDATED = 'comment_update_sticker'

Properties

$casts

protected array<string, mixed> $casts = ['tagged_user_ids' => 'array']

$fillable

protected array<string|int, string> $fillable = ['comment_id', 'user_id', 'user_type', 'item_id', 'item_type', 'content', 'params', 'phrase', 'tagged_user_ids', 'created_at']

Methods

entityId()

public entityId() : int
Return values
int

entityType()

public entityType() : string
Return values
string

getDescriptionAttribute()

public getDescriptionAttribute() : string|null
Return values
string|null

getTextParsedAttribute()

public getTextParsedAttribute() : string
Return values
string

getUserEntityAttribute()

public getUserEntityAttribute() : mixed

isUser()

check if $user is the user (creator) of entity.

public isUser(User $user) : bool
Parameters
$user : User
Return values
bool

item()

public item() : MorphTo|null
Return values
MorphTo|null

itemType()

public itemType() : string
Return values
string

moduleName()

public moduleName() : string
Return values
string

userEntity()

public userEntity() : BelongsTo
Return values
BelongsTo

userType()

public userType() : string
Return values
string

        
On this page

Search results