CommentHistoryRepository
        
        extends AbstractRepository
    
    
            
            in package
            
        
    
            
            implements
                            CommentHistoryRepositoryInterface                    
    
    
Class CommentHistoryRepository.
Table of Contents
Interfaces
- CommentHistoryRepositoryInterface
 - Interface CommentHistory
 
Properties
- $disableSponsor : mixed
 - $skipPresenter : mixed
 
Methods
- buildQueryScopes() : mixed
 - checkExists() : bool
 - cleanContent() : string|null
 - cleanTitle() : string|null
 - createHistory() : void
 - createMany() : bool
 - getModel() : CommentHistory
 - getUserContractMorphTypeColumns() : array<string|int, string>
 - hasSponsorView() : bool
 - isNoSponsorView() : bool
 - likeOperator() : string
 - return the case-insensitive LIKE operator bases on the current database driver.
 - model() : mixed
 - viewHistory() : Collection
 - where() : $this
 - withUserMorphTypeActiveScope() : self
 
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
 
checkExists()
    public
                    checkExists(Comment $comment) : bool
    Parameters
- $comment : Comment
 
Return values
boolcleanContent()
    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|nullcreateHistory()
    public
                    createHistory(User $context, Comment $comment[, string|null $phrase = null ]) : void
    Parameters
createMany()
    public
                    createMany(array<string|int, mixed> $items) : bool
    Parameters
- $items : array<string|int, mixed>
 
Return values
boolgetModel()
    public
                    getModel() : CommentHistory
    Return values
CommentHistorygetUserContractMorphTypeColumns()
    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
boollikeOperator()
return the case-insensitive LIKE operator bases on the current database driver.
    public
                    likeOperator() : string
    Return values
stringmodel()
    public
                    model() : mixed
    viewHistory()
    public
                    viewHistory(Comment $comment) : Collection
    Parameters
- $comment : Comment
 
Tags
Return values
Collectionwhere()
    public
                    where(array<string|int, mixed> $params) : $this
    Parameters
- $params : array<string|int, mixed>
 
Tags
Return values
$thiswithUserMorphTypeActiveScope()
    public
                    withUserMorphTypeActiveScope() : self