Table of Contents
Interfaces
- ResourcePolicyInterface
Properties
-
$type
: string
Methods
-
__call()
: bool
-
create()
: bool
-
delete()
: bool
-
deleteOwn()
: bool
-
update()
: bool
-
view()
: bool
-
viewActive()
: bool
-
viewAny()
: bool
-
viewOnProfilePage()
: bool
-
viewOwner()
: bool
$type
protected
string
$type
= \MetaFox\Photo\Models\Category::class
__call()
public
__call(string $ability, array<string|int, mixed> $arguments) : bool
Parameters
-
$ability
: string
-
-
$arguments
: array<string|int, mixed>
-
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
-
update()
public
update(User $user[, Entity|null $resource = null ]) : bool
Parameters
-
$user
: User
-
-
$resource
: Entity|null
= null
-
view()
public
view(User $user, Entity $resource) : bool
Parameters
-
$user
: User
-
-
$resource
: Entity
-
viewActive()
public
viewActive(User $user, Entity|null $category) : bool
Parameters
-
$user
: User
-
-
$category
: Entity|null
-
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
-