CommentAdminRepository
extends AbstractRepository
in package
implements
CommentAdminRepositoryInterface
Uses
HasApprove
Class CommentAdminRepository.
Tags
Table of Contents
Interfaces
- CommentAdminRepositoryInterface
- Interface Comment.
Properties
- $disableSponsor : mixed
- $skipPresenter : mixed
Methods
- approve() : bool
- buildQueryScopes() : mixed
- cleanContent() : string|null
- cleanTitle() : string|null
- createMany() : bool
- decline() : bool
- Decline a comment.
- find() : Comment
- getModel() : Comment
- getUserContractMorphTypeColumns() : array<string|int, string>
- hasSponsorView() : bool
- isNoSponsorView() : bool
- isPending() : bool
- likeOperator() : string
- return the case-insensitive LIKE operator bases on the current database driver.
- model() : string
- viewPendingComment() : Paginator
- View pending comment.
- where() : $this
- withUserMorphTypeActiveScope() : self
Properties
$disableSponsor
protected
mixed
$disableSponsor
$skipPresenter
protected
mixed
$skipPresenter
= true
Methods
approve()
public
approve(User $context, int $id) : bool
Parameters
- $context : User
- $id : int
Tags
Return values
boolbuildQueryScopes()
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
booldecline()
Decline a comment.
public
decline(int $id) : bool
Parameters
- $id : int
Return values
boolfind()
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
boolisNoSponsorView()
public
isNoSponsorView(string|null $view) : bool
Parameters
- $view : string|null
Return values
boolisPending()
public
isPending(Content $model) : bool
Parameters
- $model : Content
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
stringviewPendingComment()
View pending comment.
public
viewPendingComment(array<string|int, mixed> $attributes) : Paginator
Parameters
- $attributes : array<string|int, mixed>
Return values
Paginatorwhere()
public
where(array<string|int, mixed> $params) : $this
Parameters
- $params : array<string|int, mixed>
Tags
Return values
$thiswithUserMorphTypeActiveScope()
public
withUserMorphTypeActiveScope() : self