TypeRepository
        
        extends AbstractRepository
    
    
            
            in package
            
        
    
            
            implements
                            TypeRepositoryInterface                    
    
    
Class AbstractRepository.
Table of Contents
Interfaces
- TypeRepositoryInterface
 - Interface Type.
 
Properties
- $disableSponsor : mixed
 - $skipPresenter : mixed
 
Methods
- buildQueryScopes() : mixed
 - cleanContent() : string|null
 - cleanTitle() : string|null
 - createMany() : bool
 - deleteType() : int
 - getActiveTypes() : array<string|int, string>
 - Get activated activity types.
 - getTypeByType() : Type|null
 - 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
 - updateType() : Type
 - 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
 
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
booldeleteType()
    public
                    deleteType(User $context, int $id) : int
    Parameters
- $context : User
 - $id : int
 
Return values
intgetActiveTypes()
Get activated activity types.
    public
                    getActiveTypes() : array<string|int, string>
    Return values
array<string|int, string>getTypeByType()
    public
                    getTypeByType(string $type) : Type|null
    Parameters
- $type : string
 
Return values
Type|nullgetUserContractMorphTypeColumns()
    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
    updateType()
    public
                    updateType(User $context, int $id, array<string|int, mixed> $attributes) : Type
    Parameters
- $context : User
 - $id : int
 - $attributes : array<string|int, mixed>
 
Return values
Typewhere()
    public
                    where(array<string|int, mixed> $params) : $this
    Parameters
- $params : array<string|int, mixed>
 
Tags
Return values
$thiswithUserMorphTypeActiveScope()
    public
                    withUserMorphTypeActiveScope() : self