PrivacyScope
        
        extends PrivacyScope
    
    
            
            in package
            
        
    
    
    
Class PrivacyScope.
Table of Contents
Properties
- $hasUserBlock : bool
 - $moderationPermissionName : string|null
 - $moderationUserRoles : array<string|int, mixed>|null
 - $ownerId : int|null
 - $privacyColumn : string|null
 - $userId : int
 
Methods
- apply() : mixed
 - applyQueryBuilder() : void
 - getHasUserBlock() : bool
 - getModerationPermissionName() : string|null
 - getModerationUserRoles() : string|null
 - getOwnerId() : int|null
 - getPrivacyColumn() : string
 - getUserId() : int
 - likeOperator() : string
 - return the case-insensitive LIKE operator bases on the current database driver.
 - setHasUserBlock() : self
 - setModerationPermissionName() : $this
 - setModerationUserRoles() : $this
 - setOwnerId() : self
 - setPrivacyColumn() : void
 - setUserId() : self
 - addBlockedScope() : void
 - addPrivacyMemberScope() : void
 - addPrivacyScope() : void
 - alias() : string
 - hasPrivacyMemberScope() : bool
 - hasResourceModeration() : bool
 - isFriendOfFriendScope() : bool
 
Properties
$hasUserBlock
    protected
        bool
    $hasUserBlock
     = false
    
    
    
$moderationPermissionName
    protected
        string|null
    $moderationPermissionName
     = null
    
    
    
$moderationUserRoles
    protected
        array<string|int, mixed>|null
    $moderationUserRoles
     = null
    
    
    
$ownerId
    protected
        int|null
    $ownerId
     = null
    
    
    
$privacyColumn
    protected
        string|null
    $privacyColumn
     = null
    
    
    
$userId
    protected
        int
    $userId
    
    
    
    
Methods
apply()
    public
                    apply(Builder $builder, Model $model) : mixed
    Parameters
- $builder : Builder
 - $model : Model
 
applyQueryBuilder()
    public
                    applyQueryBuilder(Builder $builder) : void
    Parameters
- $builder : Builder
 
getHasUserBlock()
    public
                    getHasUserBlock() : bool
    Return values
boolgetModerationPermissionName()
    public
                    getModerationPermissionName() : string|null
    Return values
string|nullgetModerationUserRoles()
    public
                    getModerationUserRoles() : string|null
    Return values
string|nullgetOwnerId()
    public
                    getOwnerId() : int|null
    Return values
int|nullgetPrivacyColumn()
    public
                    getPrivacyColumn() : string
    Return values
stringgetUserId()
    public
                    getUserId() : int
    Return values
intlikeOperator()
return the case-insensitive LIKE operator bases on the current database driver.
    public
                    likeOperator() : string
    Return values
stringsetHasUserBlock()
    public
                    setHasUserBlock(bool $hasUserBlock) : self
    Parameters
- $hasUserBlock : bool
 
Return values
selfsetModerationPermissionName()
    public
                    setModerationPermissionName(string $name) : $this
    Parameters
- $name : string
 
Return values
$thissetModerationUserRoles()
    public
                    setModerationUserRoles(array<string|int, mixed> $roles) : $this
    Parameters
- $roles : array<string|int, mixed>
 
Return values
$thissetOwnerId()
    public
                    setOwnerId(int $ownerId) : self
    Parameters
- $ownerId : int
 
Return values
selfsetPrivacyColumn()
    public
                    setPrivacyColumn(string $column) : void
    Parameters
- $column : string
 
setUserId()
    public
                    setUserId(int $userId) : self
    Parameters
- $userId : int
 
Return values
selfaddBlockedScope()
    protected
                    addBlockedScope(Builder $builder, Model $model) : void
    Parameters
- $builder : Builder
 - $model : Model
 
addPrivacyMemberScope()
    protected
                    addPrivacyMemberScope(Builder $builder, Model $model) : void
    Parameters
- $builder : Builder
 - $model : Model
 
Tags
addPrivacyScope()
    protected
                    addPrivacyScope(Builder $builder, Model $model) : void
    Parameters
- $builder : Builder
 - $model : Model
 
alias()
    protected
                    alias(string $table, string $column) : string
    Parameters
- $table : string
 - $column : string
 
Return values
stringhasPrivacyMemberScope()
    protected
                    hasPrivacyMemberScope() : bool
    Return values
boolhasResourceModeration()
    protected
                    hasResourceModeration() : bool
    Return values
boolisFriendOfFriendScope()
    protected
                    isFriendOfFriendScope() : bool