PhotoGroupPolicy
in package
implements
ResourcePolicyInterface
Uses
HasPolicyTrait
Class PhotoGroupPolicy.
Tags
Table of Contents
Interfaces
Methods
- __call() : bool
- create() : bool
- delete() : bool
- deleteOwn() : bool
- hasCreateFeed() : bool
- update() : bool
- view() : bool
- viewAny() : bool
- viewOnProfilePage() : bool
- viewOwner() : bool
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[, mixed $owner = null ]) : bool
Parameters
- $user : User
- $owner : mixed = null
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
boolhasCreateFeed()
public
hasCreateFeed(User $owner, string $postType) : bool
Parameters
- $owner : User
- $postType : string
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