ItemStatistics
extends Model
in package
implements
HasItemMorph, HasAmounts, Entity
Uses
HasEntity, HasItemMorph, HasAmountsTrait
Class ItemStatistics.
Table of Contents
Interfaces
- HasItemMorph
- HasAmounts
- Trait HasAmounts
- Entity
- Interface Entity.
Constants
- ENTITY_TYPE = 'core_item_statistics'
- PENDING_COMMENT = 'total_pending_comment'
- PENDING_REPLY = 'total_pending_reply'
Properties
- $id : int
- $timestamps : mixed
- $total_mention : int
- $total_pending : int
- $total_pending_comment : int
- $total_pending_reply : int
- $total_tag_friend : int
- $fillable : array<string|int, string>
- $table : mixed
Methods
- decrementAmount() : int
- decrementTotalItem() : void
- entityId() : int
- entityType() : string
- getItemAttribute() : mixed
- incrementAmount() : int
- incrementTotalItem() : void
- incrementTotalView() : void
- item() : MorphTo|null
- itemId() : int
- itemType() : string
- moduleName() : string
- handleNegativeNumber() : void
Constants
ENTITY_TYPE
public
mixed
ENTITY_TYPE
= 'core_item_statistics'
PENDING_COMMENT
public
mixed
PENDING_COMMENT
= 'total_pending_comment'
PENDING_REPLY
public
mixed
PENDING_REPLY
= 'total_pending_reply'
Properties
$id
public
int
$id
$timestamps
public
mixed
$timestamps
= false
$total_mention
public
int
$total_mention
$total_pending
public
int
$total_pending
$total_pending_comment
public
int
$total_pending_comment
$total_pending_reply
public
int
$total_pending_reply
$total_tag_friend
public
int
$total_tag_friend
$fillable
protected
array<string|int, string>
$fillable
= ['item_id', 'item_type', 'total_pending_comment', 'total_pending_reply', 'total_mention', 'total_tag_friend']
$table
protected
mixed
$table
= 'core_item_statistics'
Methods
decrementAmount()
public
decrementAmount(string $column[, int $amount = 1 ]) : int
Parameters
- $column : string
- $amount : int = 1
Return values
intdecrementTotalItem()
public
decrementTotalItem() : void
entityId()
public
entityId() : int
Return values
intentityType()
public
entityType() : string
Return values
stringgetItemAttribute()
public
getItemAttribute() : mixed
incrementAmount()
public
incrementAmount(string $column[, int $amount = 1 ]) : int
Parameters
- $column : string
- $amount : int = 1
Return values
intincrementTotalItem()
public
incrementTotalItem() : void
incrementTotalView()
public
incrementTotalView() : void
item()
public
item() : MorphTo|null
Return values
MorphTo|nullitemId()
public
itemId() : int
Return values
intitemType()
public
itemType() : string
Return values
stringmoduleName()
public
moduleName() : string
Return values
stringhandleNegativeNumber()
protected
handleNegativeNumber(string $column) : void
Parameters
- $column : string