ReportItemRepository
        
        extends AbstractRepository
    
    
            
            in package
            
        
    
            
            implements
                            ReportItemRepositoryInterface                    
    
    
Class ReportItemRepository.
Table of Contents
Interfaces
- ReportItemRepositoryInterface
 - Interface ReportItem.
 
Properties
- $disableSponsor : mixed
 - $skipPresenter : mixed
 
Methods
- buildQueryScopes() : mixed
 - canReport() : bool
 - cleanContent() : string|null
 - cleanTitle() : string|null
 - createMany() : bool
 - createReport() : bool|ReportItem
 - find() : ReportItem
 - getModel() : ReportItem
 - getReportItem() : mixed
 - getUserContractMorphTypeColumns() : array<string|int, string>
 - hasSponsorView() : bool
 - isNoSponsorView() : bool
 - likeOperator() : string
 - return the case-insensitive LIKE operator bases on the current database driver.
 - model() : string
 - 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
 
canReport()
    public
                    canReport(User $context, int $itemId, string $itemType) : bool
    Parameters
- $context : User
 - $itemId : int
 - $itemType : string
 
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|nullcreateMany()
    public
                    createMany(array<string|int, mixed> $items) : bool
    Parameters
- $items : array<string|int, mixed>
 
Return values
boolcreateReport()
    public
                    createReport(User $context, array<string|int, mixed> $attributes) : bool|ReportItem
    Parameters
- $context : User
 - $attributes : array<string|int, mixed>
 
Return values
bool|ReportItemfind()
    public
                    find(mixed $id, mixed $columns) : ReportItem
    ()
Parameters
- $id : mixed
 - $columns : mixed
 
Return values
ReportItemgetModel()
    public
                    getModel() : ReportItem
    Return values
ReportItemgetReportItem()
    public
                    getReportItem(array<string|int, mixed> $conditions) : mixed
    Parameters
- $conditions : array<string|int, mixed>
 
getUserContractMorphTypeColumns()
    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() : 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