PrivacyRepository
        
        extends AbstractRepository
    
    
            
            in package
            
        
    
            
            implements
                            PrivacyRepositoryInterface                    
    
    
Class PrivacyListRepository.
Tags
Table of Contents
Interfaces
- PrivacyRepositoryInterface
 - Interface PrivacyListRepositoryInterface.
 
Properties
- $model : Privacy
 - $disableSponsor : mixed
 - $skipPresenter : mixed
 
Methods
- buildQueryScopes() : mixed
 - cleanContent() : string|null
 - cleanTitle() : string|null
 - create() : Privacy
 - createMany() : bool
 - forceCreatePrivacyStream() : void
 - getCustomPrivacyOptions() : Arrayable
 - getModel() : Privacy
 - getPrivacyId() : int
 - getPrivacyIdForUserPrivacy() : int
 - Get privacy id for user privacy (user_privacy_values table).
 - getPrivacyIdsForContent() : array<string|int, int>
 - Get privacy list for content resource.
 - getPrivacyIdsForMembership() : array<string|int, int>
 - Get privacy list for membership resource.
 - getPrivacyTypeByPrivacy() : string|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
 - where() : $this
 - withUserMorphTypeActiveScope() : self
 - getItemCustomPrivacies() : array<string|int, mixed>|null
 - getPrivaciesByOwnerId() : Collection
 - getPrivacyIdByPrivacy() : int
 - getPrivacyIdsByPrivacy() : array<string|int, mixed>
 
Properties
$model
    public
        Privacy
    $model
    
    
    
    
$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|nullcreate()
    public
                    create(array<string|int, mixed> $attributes) : Privacy
    Parameters
- $attributes : array<string|int, mixed>
 
Return values
PrivacycreateMany()
    public
                    createMany(array<string|int, mixed> $items) : bool
    Parameters
- $items : array<string|int, mixed>
 
Return values
boolforceCreatePrivacyStream()
    public
                    forceCreatePrivacyStream(Entity $model) : void
    Parameters
- $model : Entity
 
getCustomPrivacyOptions()
    public
                    getCustomPrivacyOptions(User $context[, array<string|int, mixed> $params = [] ]) : Arrayable
    Parameters
- $context : User
 - $params : array<string|int, mixed> = []
 
Return values
ArrayablegetModel()
    public
                    getModel() : Privacy
    Return values
PrivacygetPrivacyId()
    public
                    getPrivacyId(int $itemId, string $itemType, string $privacyType) : int
    Parameters
- $itemId : int
 - $itemType : string
 - $privacyType : string
 
Return values
intgetPrivacyIdForUserPrivacy()
Get privacy id for user privacy (user_privacy_values table).
    public
                    getPrivacyIdForUserPrivacy(int $ownerId, int $privacy) : int
    Parameters
- $ownerId : int
 - $privacy : int
 
Return values
intgetPrivacyIdsForContent()
Get privacy list for content resource.
    public
                    getPrivacyIdsForContent(Entity $content) : array<string|int, int>
    Parameters
- $content : Entity
 
Return values
array<string|int, int>getPrivacyIdsForMembership()
Get privacy list for membership resource.
    public
                    getPrivacyIdsForMembership(Membership $membership) : array<string|int, int>
    Parameters
- $membership : Membership
 
Return values
array<string|int, int>getPrivacyTypeByPrivacy()
    public
                    getPrivacyTypeByPrivacy(int $ownerId, int $privacy) : string|null
    Parameters
- $ownerId : int
 - $privacy : int
 
Return values
string|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
    where()
    public
                    where(array<string|int, mixed> $params) : $this
    Parameters
- $params : array<string|int, mixed>
 
Tags
Return values
$thiswithUserMorphTypeActiveScope()
    public
                    withUserMorphTypeActiveScope() : self
    Return values
selfgetItemCustomPrivacies()
    protected
                    getItemCustomPrivacies(string $itemType, int $itemId) : array<string|int, mixed>|null
    Parameters
- $itemType : string
 - $itemId : int
 
Return values
array<string|int, mixed>|nullgetPrivaciesByOwnerId()
    protected
                    getPrivaciesByOwnerId(int $ownerId) : Collection
    Parameters
- $ownerId : int
 
Return values
CollectiongetPrivacyIdByPrivacy()
    protected
                    getPrivacyIdByPrivacy(int $ownerId, int $privacy) : int
    Parameters
- $ownerId : int
 - $privacy : int
 
Return values
intgetPrivacyIdsByPrivacy()
    protected
                    getPrivacyIdsByPrivacy(int $ownerId, int $privacy) : array<string|int, mixed>
    Parameters
- $ownerId : int
 - $privacy : int