MetaFox

AlbumPolicy
in package
implements ResourcePolicyInterface, ActionPolicyInterface Uses CheckModeratorSettingTrait, HasPolicyTrait

Table of Contents

Interfaces

ResourcePolicyInterface
ActionPolicyInterface
Interface ActionPolicyInterface

Properties

$type  : string

Methods

__call()  : bool
checkModeratorSetting()  : bool
create()  : bool
delete()  : bool
deleteOwn()  : bool
getEntityType()  : string
share()  : bool
update()  : bool
updateOwn()  : bool
uploadMedias()  : bool
view()  : bool
viewAny()  : bool
viewOnProfilePage()  : bool
viewOwner()  : bool

Properties

$type

protected string $type = \MetaFox\Photo\Models\Album::class

Methods

__call()

public __call(string $ability, array<string|int, mixed> $arguments) : bool
Parameters
$ability : string
$arguments : array<string|int, mixed>
Return values
bool

create()

public create(User $user[, User|null $owner = null ]) : bool
Parameters
$user : User
$owner : User|null = null
Return values
bool

deleteOwn()

public deleteOwn(User $user[, Entity|null $resource = null ]) : bool
Parameters
$user : User
$resource : Entity|null = null
Return values
bool

getEntityType()

public getEntityType() : string
Return values
string

viewAny()

public viewAny(User $user[, User|null $owner = null ]) : bool
Parameters
$user : User
$owner : User|null = null
Return values
bool

viewOnProfilePage()

public viewOnProfilePage(User $user, User $owner) : bool
Parameters
$user : User
$owner : User
Return values
bool

viewOwner()

public viewOwner(User $user[, User|null $owner = null ]) : bool
Parameters
$user : User
$owner : User|null = null
Return values
bool

        
On this page

Search results