CommentHiddenRepository
extends AbstractRepository
in package
implements
CommentHiddenRepositoryInterface
Class CommentRepository.
Tags
Table of Contents
Interfaces
- CommentHiddenRepositoryInterface
- Interface Comment.
Properties
- $disableSponsor : mixed
- $skipPresenter : mixed
Methods
- buildQueryScopes() : mixed
- cleanContent() : string|null
- cleanTitle() : string|null
- createMany() : bool
- find() : CommentHide
- getModel() : CommentHide
- getUserContractMorphTypeColumns() : array<string|int, string>
- hasSponsorView() : bool
- hideComment() : bool
- hideCommentGlobal() : bool
- isNoSponsorView() : bool
- likeOperator() : string
- return the case-insensitive LIKE operator bases on the current database driver.
- model() : string
- where() : $this
- withUserMorphTypeActiveScope() : self
- commentRepository() : CommentRepositoryInterface
- processContextHidden() : bool
- In case context is executed action hide.
- processRelatedHidden() : bool
- In case owner of item and owner of comment.
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
boolfind()
public
find(mixed $id, mixed $columns) : CommentHide
Parameters
- $id : mixed
- $columns : mixed
Return values
CommentHidegetModel()
public
getModel() : CommentHide
Return values
CommentHidegetUserContractMorphTypeColumns()
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
boolhideComment()
public
hideComment(User $context, int $id, bool $isHidden) : bool
Parameters
- $context : User
- $id : int
- $isHidden : bool
Tags
Return values
boolhideCommentGlobal()
public
hideCommentGlobal(User $context, int $id, bool $isHidden) : bool
Parameters
- $context : User
- $id : int
- $isHidden : bool
Tags
Return values
boolisNoSponsorView()
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
selfcommentRepository()
protected
commentRepository() : CommentRepositoryInterface
Return values
CommentRepositoryInterfaceprocessContextHidden()
In case context is executed action hide.
protected
processContextHidden(User $user, int $id, bool $isHidden, string $type) : bool
Parameters
- $user : User
- $id : int
- $isHidden : bool
- $type : string
Return values
boolprocessRelatedHidden()
In case owner of item and owner of comment.
protected
processRelatedHidden(User $user, int $id, bool $isHidden) : bool
Parameters
- $user : User
- $id : int
- $isHidden : bool