PrivacyPolicy
extends Facade
in package
Class PrivacyPolicy.
Table of Contents
Methods
- checkBlockUser() : bool
- checkCreateOnOwner() : bool
- checkCreateResourceOnOwner() : bool
- checkItemPrivacy() : bool
- checkPermission() : bool
- checkPermissionOwner() : bool
- getPrivacyItem() : array<string|int, mixed>
- getResourcePrivacyList() : array<string|int, int>
- hasAbilityOnOwner() : bool
- getFacadeAccessor() : mixed
Methods
checkBlockUser()
public
static checkBlockUser(User $user, User $owner) : bool
Parameters
Return values
boolcheckCreateOnOwner()
public
static checkCreateOnOwner(User $user, User|null $owner) : bool
Parameters
Return values
boolcheckCreateResourceOnOwner()
public
static checkCreateResourceOnOwner(Content $content) : bool
Parameters
- $content : Content
Return values
boolcheckItemPrivacy()
public
static checkItemPrivacy(User $user, User $owner, HasPrivacy $content, array<string|int, mixed>|null $privacyIds = null) : bool
Parameters
- $user : User
- $owner : User
- $content : HasPrivacy
- $privacyIds = null : array<string|int, mixed>|null
Return values
boolcheckPermission()
public
static checkPermission(User|null $user, Content $content) : bool
Parameters
Return values
boolcheckPermissionOwner()
public
static checkPermissionOwner(User|null $user, User $owner) : bool
Parameters
Return values
boolgetPrivacyItem()
public
static getPrivacyItem(Content $content) : array<string|int, mixed>
Parameters
- $content : Content
Return values
array<string|int, mixed>getResourcePrivacyList()
public
static getResourcePrivacyList(Content $content) : array<string|int, int>
Parameters
- $content : Content
Return values
array<string|int, int>hasAbilityOnOwner()
public
static hasAbilityOnOwner(User $user, User $owner, int $privacy, string $privacyType = null) : bool
Parameters
Return values
boolgetFacadeAccessor()
protected
static getFacadeAccessor() : mixed