Table of Contents
Interfaces
- ResourcePolicyInterface
Methods
-
__call()
: bool
-
approve()
: bool
-
checkModeratorSetting()
: bool
-
comment()
: bool
-
create()
: bool
-
delete()
: bool
-
deleteOwn()
: bool
-
like()
: bool
-
share()
: bool
-
update()
: bool
-
view()
: bool
-
viewAny()
: bool
-
viewOnProfilePage()
: bool
-
viewOwner()
: bool
-
checkCreateOnOwner()
: bool
__call()
public
__call(string $ability, array<string|int, mixed> $arguments) : bool
Parameters
-
$ability
: string
-
-
$arguments
: array<string|int, mixed>
-
approve()
public
approve(User $context[, Content|null $content = null ]) : bool
Parameters
-
$context
: User
-
-
$content
: Content|null
= null
-
checkModeratorSetting()
public
checkModeratorSetting(User $user, User $owner, string $settingName) : bool
Parameters
-
$user
: User
-
-
$owner
: User
-
-
$settingName
: string
-
public
comment(User $user[, Content|null $resource = null ]) : bool
Parameters
-
$user
: User
-
-
$resource
: Content|null
= null
-
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
-
like()
public
like(User $user[, Content|null $resource = null ]) : bool
Parameters
-
$user
: User
-
-
$resource
: Content|null
= null
-
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
-
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
-
checkCreateOnOwner()
private
checkCreateOnOwner(User $user, User $owner) : bool
Parameters
-
$user
: User
-
-
$owner
: User
-