MetaFox

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

checkCreateOnOwner()

public static checkCreateOnOwner(User $user, User|null $owner) : bool
Parameters
$user : User
$owner : User|null
Return values
bool

checkCreateResourceOnOwner()

public static checkCreateResourceOnOwner(Content $content) : bool
Parameters
$content : Content
Return values
bool

checkItemPrivacy()

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
bool

checkPermissionOwner()

public static checkPermissionOwner(User|null $user, User $owner) : bool
Parameters
$user : User|null
$owner : User
Return values
bool

getPrivacyItem()

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
$user : User
$owner : User
$privacy : int
$privacyType = null : string
Return values
bool

getFacadeAccessor()

protected static getFacadeAccessor() : mixed

        
On this page

Search results