UserShortcutPolicy
    
            
            in package
            
        
    
            
            implements
                            ResourcePolicyInterface                    
    
            
            Uses
                            HasPolicyTrait                    
    
Class UserShortcutPolicy.
Tags
Table of Contents
Interfaces
Properties
- $type : string
 
Methods
- __call() : bool
 - create() : bool
 - delete() : bool
 - deleteOwn() : bool
 - moderate() : bool
 - update() : bool
 - view() : bool
 - viewAny() : bool
 - viewOnProfilePage() : bool
 - viewOwner() : bool
 
Properties
$type
    protected
        string
    $type
     = 'shortcut'
    
    
    
Methods
__call()
    public
                    __call(string $ability, array<string|int, mixed> $arguments) : bool
    Parameters
- $ability : string
 - $arguments : array<string|int, mixed>
 
Return values
boolcreate()
    public
                    create(User $user[, User|null $owner = null ]) : bool
    Parameters
Return values
booldelete()
    public
                    delete(User $user[, Entity|null $resource = null ]) : bool
    Parameters
Return values
booldeleteOwn()
    public
                    deleteOwn(User $user[, Entity|null $resource = null ]) : bool
    Parameters
Return values
boolmoderate()
    public
                    moderate(User $user) : bool
    Parameters
- $user : User
 
Return values
boolupdate()
    public
                    update(User $user[, Entity|null $resource = null ]) : bool
    Parameters
Return values
boolview()
    public
                    view(User $user, Entity $resource) : bool
    Parameters
Return values
boolviewAny()
    public
                    viewAny(User $user[, User|null $owner = null ]) : bool
    Parameters
Return values
boolviewOnProfilePage()
    public
                    viewOnProfilePage(User $user, User $owner) : bool
    Parameters
Return values
boolviewOwner()
    public
                    viewOwner(User $user[, User|null $owner = null ]) : bool