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
$type
protected
string
$type
= \MetaFox\Photo\Models\Album::class
__call()
public
__call(string $ability, array<string|int, mixed> $arguments) : bool
Parameters
-
$ability
: string
-
-
$arguments
: array<string|int, mixed>
-
checkModeratorSetting()
public
checkModeratorSetting(User $user, User $owner, string $settingName) : bool
Parameters
-
$user
: User
-
-
$owner
: User
-
-
$settingName
: string
-
create()
public
create(User $user[, User|null $owner = null ]) : bool
Parameters
-
$user
: User
-
-
$owner
: User|null
= null
-
delete()
public
delete(User $user[, Entity|null $resource = null ]) : bool
Parameters
-
$user
: User
-
-
$resource
: Entity|null
= null
-
deleteOwn()
public
deleteOwn(User $user[, Entity|null $resource = null ]) : bool
Parameters
-
$user
: User
-
-
$resource
: Entity|null
= null
-
getEntityType()
public
getEntityType() : string
share()
public
share(User $user[, Content|null $resource = null ]) : bool
Parameters
-
$user
: User
-
-
$resource
: Content|null
= null
-
update()
public
update(User $user[, Entity|null $resource = null ]) : bool
Parameters
-
$user
: User
-
-
$resource
: Entity|null
= null
-
updateOwn()
public
updateOwn(User $user[, Content|null $resource = null ]) : bool
Parameters
-
$user
: User
-
-
$resource
: Content|null
= null
-
public
uploadMedias(User $user, Content|null $resource) : bool
Parameters
-
$user
: User
-
-
$resource
: Content|null
-
view()
public
view(User $user, Entity $resource) : bool
Parameters
-
$user
: User
-
-
$resource
: Entity
-
viewAny()
public
viewAny(User $user[, User|null $owner = null ]) : bool
Parameters
-
$user
: User
-
-
$owner
: User|null
= null
-
viewOnProfilePage()
public
viewOnProfilePage(User $user, User $owner) : bool
Parameters
-
$user
: User
-
-
$owner
: User
-
viewOwner()
public
viewOwner(User $user[, User|null $owner = null ]) : bool
Parameters
-
$user
: User
-
-
$owner
: User|null
= null
-