CommentStatisticRepository
extends AbstractRepository
in package
implements
CommentStatisticRepositoryInterface
Class CommentStatisticRepository.
Tags
Table of Contents
Interfaces
- CommentStatisticRepositoryInterface
- Interface CommentStatisticRepositoryInterface.
Constants
- DECREMENT_AMOUNT = 'decrementAmount'
- INCREMENT_AMOUNT = 'incrementAmount'
Properties
- $disableSponsor : mixed
- $skipPresenter : mixed
Methods
- buildQueryScopes() : mixed
- cleanContent() : string|null
- cleanTitle() : string|null
- createMany() : bool
- decreaseTotal() : void
- decreaseTotalPending() : void
- find() : Comment
- getModel() : Comment
- getUserContractMorphTypeColumns() : array<string|int, string>
- hasSponsorView() : bool
- increaseTotal() : void
- isNoSponsorView() : bool
- likeOperator() : string
- return the case-insensitive LIKE operator bases on the current database driver.
- model() : string
- where() : $this
- withUserMorphTypeActiveScope() : self
- adjustCommentStatistic() : void
- adjustParentCommentStatistic() : void
- adjustReplyStatistic() : void
- callActionOnItem() : void
- decreaseStatistic() : void
Constants
DECREMENT_AMOUNT
public
mixed
DECREMENT_AMOUNT
= 'decrementAmount'
INCREMENT_AMOUNT
public
mixed
INCREMENT_AMOUNT
= 'incrementAmount'
Properties
$disableSponsor
protected
mixed
$disableSponsor
$skipPresenter
protected
mixed
$skipPresenter
= true
Methods
buildQueryScopes()
public
buildQueryScopes(mixed $query, mixed $model, mixed $criteria) : mixed
Parameters
- $query : mixed
- $model : mixed
- $criteria : mixed
cleanContent()
public
cleanContent(string|null $string) : string|null
Parameters
- $string : string|null
Return values
string|nullcleanTitle()
public
cleanTitle(string|null $string) : string|null
Parameters
- $string : string|null
Return values
string|nullcreateMany()
public
createMany(array<string|int, mixed> $items) : bool
Parameters
- $items : array<string|int, mixed>
Return values
booldecreaseTotal()
public
decreaseTotal(Comment $comment) : void
Parameters
- $comment : Comment
decreaseTotalPending()
public
decreaseTotalPending(Comment $comment) : void
Parameters
- $comment : Comment
find()
public
find(mixed $id, mixed $columns) : Comment
Parameters
- $id : mixed
- $columns : mixed
Return values
CommentgetModel()
public
getModel() : Comment
Return values
CommentgetUserContractMorphTypeColumns()
public
getUserContractMorphTypeColumns() : array<string|int, string>
Return values
array<string|int, string>hasSponsorView()
public
hasSponsorView(array<string|int, mixed> $attributes) : bool
Parameters
- $attributes : array<string|int, mixed>
Return values
boolincreaseTotal()
public
increaseTotal(Comment $comment) : void
Parameters
- $comment : Comment
isNoSponsorView()
public
isNoSponsorView(string|null $view) : bool
Parameters
- $view : string|null
Return values
boollikeOperator()
return the case-insensitive LIKE operator bases on the current database driver.
public
likeOperator() : string
Return values
stringmodel()
public
model() : string
Return values
stringwhere()
public
where(array<string|int, mixed> $params) : $this
Parameters
- $params : array<string|int, mixed>
Tags
Return values
$thiswithUserMorphTypeActiveScope()
public
withUserMorphTypeActiveScope() : self
Return values
selfadjustCommentStatistic()
protected
adjustCommentStatistic(Entity $item, string $action, string $column) : void
Parameters
- $item : Entity
- $action : string
- $column : string
adjustParentCommentStatistic()
protected
adjustParentCommentStatistic(Comment $comment, string $action, string $column) : void
Parameters
- $comment : Comment
- $action : string
- $column : string
adjustReplyStatistic()
protected
adjustReplyStatistic(Entity $item, string $action, string $column) : void
Parameters
- $item : Entity
- $action : string
- $column : string
callActionOnItem()
protected
callActionOnItem(mixed $item, string $action, string $param) : void
Parameters
- $item : mixed
- $action : string
- $param : string
decreaseStatistic()
protected
decreaseStatistic(Comment $comment[, bool $isPending = false ]) : void
Parameters
- $comment : Comment
- $isPending : bool = false